changeset 3082:2879ea685e81 libavformat

rescale frame size, fix i.3g2
author bcoudurier
date Tue, 26 Feb 2008 14:36:49 +0000
parents e9f7c2764298
children 100182d3aefe
files mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Tue Feb 26 14:31:36 2008 +0000
+++ b/mov.c	Tue Feb 26 14:36:49 2008 +0000
@@ -1443,7 +1443,7 @@
         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);