Commit 366605ff authored by Matthieu Bouron's avatar Matthieu Bouron Committed by Michael Niedermayer

mpeg12enc: fix drop_frame_timecode value

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7862bd3d
......@@ -184,6 +184,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->tc.rate = avpriv_frame_rate_tab[s->frame_rate_index];
if (avpriv_init_smpte_timecode(s, &s->tc) < 0)
return -1;
s->drop_frame_timecode = s->tc.drop;
s->avctx->timecode_frame_start = s->tc.start;
} else {
s->avctx->timecode_frame_start = 0; // default is -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment