From 6d680e1b508b0ed61df847a65f0db270c2ef3fc3 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 26 Feb 2008 14:36:49 +0000 Subject: [PATCH] rescale frame size, fix i.3g2 Originally committed as revision 12230 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index e0a3346482..d5ff2dedd3 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1443,7 +1443,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) av_set_pts_info(st, 64, sc->time_rate, sc->time_scale); if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1) - st->codec->frame_size = sc->stts_data[0].duration; + st->codec->frame_size = av_rescale(sc->time_rate, st->codec->sample_rate, sc->time_scale); if(st->duration != AV_NOPTS_VALUE){ assert(st->duration % sc->time_rate == 0);