[FFmpeg-cvslog] r12230 - trunk/libavformat/mov.c

bcoudurier subversion
Tue Feb 26 15:36:49 CET 2008


Author: bcoudurier
Date: Tue Feb 26 15:36:49 2008
New Revision: 12230

Log:
rescale frame size, fix i.3g2

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Tue Feb 26 15:36:49 2008
@@ -1443,7 +1443,7 @@ static int mov_read_header(AVFormatConte
         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);




More information about the ffmpeg-cvslog mailing list