summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-06 14:36:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-06 14:36:15 +0000
commit758082aff73fcba809452cbedff0f5abccda16ec (patch)
tree792fceef40cd1b718283b23773831249c3983669 /libavcodec
parent80ce3254ac86d11e8e1468cab32df8e704e5adf2 (diff)
set time_base for variable fps too
Originally committed as revision 4187 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9048886bd3..fbd11d275a 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};
}
}