[FFmpeg-cvslog] r17162 - trunk/libavformat/mov.c
bcoudurier
subversion
Wed Feb 11 22:11:19 CET 2009
Author: bcoudurier
Date: Wed Feb 11 22:11:19 2009
New Revision: 17162
Log:
fix frame size, time rate is not stts duration anymore with time offset
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c Wed Feb 11 21:19:35 2009 (r17161)
+++ trunk/libavformat/mov.c Wed Feb 11 22:11:19 2009 (r17162)
@@ -1366,8 +1366,11 @@ static int mov_read_trak(MOVContext *c,
av_set_pts_info(st, 64, sc->time_rate, sc->time_scale);
if (st->codec->codec_type == CODEC_TYPE_AUDIO &&
- !st->codec->frame_size && sc->stts_count == 1)
- st->codec->frame_size = av_rescale(sc->time_rate, st->codec->sample_rate, sc->time_scale);
+ !st->codec->frame_size && sc->stts_count == 1) {
+ st->codec->frame_size = av_rescale(sc->stts_data[0].duration,
+ st->codec->sample_rate, sc->time_scale);
+ dprintf(c->fc, "frame size %d\n", st->codec->frame_size);
+ }
if(st->duration != AV_NOPTS_VALUE){
assert(st->duration % sc->time_rate == 0);
More information about the ffmpeg-cvslog
mailing list