summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_encode_mpeg2.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2019-02-10 19:47:02 +0000
committerMark Thompson <sw@jkqxz.net>2019-02-25 23:34:14 +0000
commitf948082e5fc24b00c5b7dbf4493906f1e540a743 (patch)
tree02310d2688a99d8fcb0db6435204499e08e2eb7e /libavcodec/vaapi_encode_mpeg2.c
parentfda6dcd0b0a32a05e459b62ff5f40bbe56cd3290 (diff)
downloadffmpeg-f948082e5fc24b00c5b7dbf4493906f1e540a743.tar.gz
vaapi_encode_mpeg2: Add missing marker bit in time_code
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.
Diffstat (limited to 'libavcodec/vaapi_encode_mpeg2.c')
-rw-r--r--libavcodec/vaapi_encode_mpeg2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c
index ef8af664c2..fb1ef71fdc 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;