[SCM] libav/experimental: set time_base for variable fps too
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:43:50 UTC 2013
The following commit has been merged in the experimental branch:
commit 758082aff73fcba809452cbedff0f5abccda16ec
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Fri May 6 14:36:15 2005 +0000
set time_base for variable fps too
Originally committed as revision 4187 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9048886..fbd11d2 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3847,7 +3847,7 @@ static int decode_slice_header(H264Context *h){
if(!s->avctx->sample_aspect_ratio.den)
s->avctx->sample_aspect_ratio.den = 1;
- if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){
+ if(h->sps.timing_info_present_flag){
s->avctx->time_base= (AVRational){h->sps.num_units_in_tick, h->sps.time_scale};
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list