diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-21 10:19:37 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-21 10:19:37 +0000 |
commit | 638fd2fce7740a6c863697e7c8d1bdcdab75e8aa (patch) | |
tree | d0071f74d799b6402c1623e94822cb3a1b1928d1 | |
parent | 2d2432b73852900498b3ceb20655990f0c8e13c5 (diff) | |
download | ffmpeg-638fd2fce7740a6c863697e7c8d1bdcdab75e8aa.tar.gz |
cosmetics
Originally committed as revision 8463 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index f41c53e314..94243b6e8a 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1513,17 +1513,17 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) sc->time_rate=1; if(!sc->time_scale) sc->time_scale= mov->time_scale; - av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale); + 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; - if(s->streams[i]->duration != AV_NOPTS_VALUE){ - assert(s->streams[i]->duration % sc->time_rate == 0); - s->streams[i]->duration /= sc->time_rate; + if(st->duration != AV_NOPTS_VALUE){ + assert(st->duration % sc->time_rate == 0); + st->duration /= sc->time_rate; } sc->ffindex = i; - mov_build_index(mov, s->streams[i]); + mov_build_index(mov, st); } for(i=0; i<mov->total_streams; i++) { |