diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-15 15:54:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-15 15:54:02 +0200 |
commit | 620e7f0f3b3dff85d9c49a5c4b8a5df7143af7fe (patch) | |
tree | 080d5fdfe1041faa2eb33e865b8e4f902187c05c /libavcodec/mpeg12dec.c | |
parent | 801876fb079ecac157dbbffe2b6d10f2e2408fbf (diff) | |
download | ffmpeg-620e7f0f3b3dff85d9c49a5c4b8a5df7143af7fe.tar.gz |
avcodec/mpeg12dec: fix time_base and framerate
They are not just inverses of each other.
This should restore behavior to before the introduction of framerate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 1f7fca59e5..40962ac01d 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1316,7 +1316,7 @@ static int mpeg_decode_postinit(AVCodecContext *avctx) // MPEG-2 fps av_reduce(&s->avctx->framerate.num, &s->avctx->framerate.den, - ff_mpeg12_frame_rate_tab[s->frame_rate_index].num * s1->frame_rate_ext.num * 2, + ff_mpeg12_frame_rate_tab[s->frame_rate_index].num * s1->frame_rate_ext.num, ff_mpeg12_frame_rate_tab[s->frame_rate_index].den * s1->frame_rate_ext.den, 1 << 30); avctx->ticks_per_frame = 2; |