summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorIvan Schreter <schreter@gmx.net>2009-02-24 20:19:59 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-02-24 20:19:59 +0000
commitfc9fe42833cb205200fc977fa9014616c70aa4bf (patch)
treeb709f9da91b7484911be66fbeac11ec00f90e3a5 /libavcodec/h264.c
parent810c451b02404a3a2d43186003a4b2b9cbedd02e (diff)
downloadffmpeg-streaming-fc9fe42833cb205200fc977fa9014616c70aa4bf.zip
ffmpeg-streaming-fc9fe42833cb205200fc977fa9014616c70aa4bf.tar.gz
Correct time_base of H.264 and repeat_pict.
Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17571 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 89f9978..344cee5 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3763,7 +3763,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
s->avctx->sample_aspect_ratio.den = 1;
if(h->sps.timing_info_present_flag){
- s->avctx->time_base= (AVRational){h->sps.num_units_in_tick * 2, h->sps.time_scale};
+ s->avctx->time_base= (AVRational){h->sps.num_units_in_tick, h->sps.time_scale};
if(h->x264_build > 0 && h->x264_build < 44)
s->avctx->time_base.den *= 2;
av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den,
OpenPOWER on IntegriCloud