diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-27 14:01:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-27 14:01:32 +0000 |
commit | 19df37a8a6a442f93518f891ad5d474e27f11b13 (patch) | |
tree | ead951cef679bc803c57b1e2456845e10cc097b7 /libavcodec | |
parent | 03c03afde78a421afb9d76e771715c8c85880446 (diff) | |
download | ffmpeg-19df37a8a6a442f93518f891ad5d474e27f11b13.tar.gz |
Fix SVQ3 regression since ticks_per_frame=2.
Originally committed as revision 17640 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 24dc201e9f..707cde138a 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2201,7 +2201,8 @@ static av_cold int decode_init(AVCodecContext *avctx){ h->sei_dpb_output_delay = 0; h->sei_cpb_removal_delay = -1; h->sei_buffering_period_present = 0; - avctx->ticks_per_frame = 2; + if(avctx->codec_id == CODEC_ID_H264) + avctx->ticks_per_frame = 2; return 0; } |