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.
pull/325/head
Mark Thompson 6 years ago
parent fda6dcd0b0
commit f948082e5f
  1. 3
      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;

Loading…
Cancel
Save