]> git.sesse.net Git - ffmpeg/commitdiff
vaapi_encode_mpeg2: Add missing marker bit in time_code
authorMark Thompson <sw@jkqxz.net>
Sun, 10 Feb 2019 19:47:02 +0000 (19:47 +0000)
committerMark Thompson <sw@jkqxz.net>
Mon, 25 Feb 2019 23:34:14 +0000 (23:34 +0000)
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

index ef8af664c2d9c238ac4587bcc2f6ffe7cf593e2c..fb1ef71fdc15aeada70fc1ec67cab24b609874ae 100644 (file)
@@ -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;