[FFmpeg-devel] [PATCH v3 09/12] vaapi_encode_mpeg2: Add missing marker bit in time_code
Mark Thompson
sw at jkqxz.net
Sun Feb 10 21:47:02 EET 2019
We don't have anything useful to put in this field, but there is still
meant to be a marker bit in the middle of it.
---
libavcodec/vaapi_encode_mpeg2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c
index 174611ff24..26d2433e1c 100644
--- a/libavcodec/vaapi_encode_mpeg2.c
+++ b/libavcodec/vaapi_encode_mpeg2.c
@@ -313,7 +313,8 @@ static int vaapi_encode_mpeg2_init_sequence_params(AVCodecContext *avctx)
goph->group_start_code = MPEG2_START_GROUP;
- goph->time_code = 0;
+ // Marker bit in the middle of time_code.
+ goph->time_code = 1 << 12;
goph->closed_gop = 1;
goph->broken_link = 0;
--
2.19.2
More information about the ffmpeg-devel
mailing list