1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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.
This commit is contained in:
Mark Thompson 2019-02-10 19:47:02 +00:00
parent fda6dcd0b0
commit f948082e5f

View 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;