aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-26 14:36:49 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-26 14:36:49 +0000
commit6d680e1b508b0ed61df847a65f0db270c2ef3fc3 (patch)
tree7998d80c745f09adc07f52f97c945718679d0c4e
parentf296563e5f41ca0d34675a99b2abe9c41a28bc39 (diff)
downloadffmpeg-6d680e1b508b0ed61df847a65f0db270c2ef3fc3.tar.gz
rescale frame size, fix i.3g2
Originally committed as revision 12230 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
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);