forked from FFmpeg/FFmpeg
cosmetics
Originally committed as revision 8463 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2d2432b738
commit
638fd2fce7
1 changed files with 5 additions and 5 deletions
|
@ -1513,17 +1513,17 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||||
sc->time_rate=1;
|
sc->time_rate=1;
|
||||||
if(!sc->time_scale)
|
if(!sc->time_scale)
|
||||||
sc->time_scale= mov->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)
|
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 = sc->stts_data[0].duration;
|
||||||
|
|
||||||
if(s->streams[i]->duration != AV_NOPTS_VALUE){
|
if(st->duration != AV_NOPTS_VALUE){
|
||||||
assert(s->streams[i]->duration % sc->time_rate == 0);
|
assert(st->duration % sc->time_rate == 0);
|
||||||
s->streams[i]->duration /= sc->time_rate;
|
st->duration /= sc->time_rate;
|
||||||
}
|
}
|
||||||
sc->ffindex = i;
|
sc->ffindex = i;
|
||||||
mov_build_index(mov, s->streams[i]);
|
mov_build_index(mov, st);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=0; i<mov->total_streams; i++) {
|
for(i=0; i<mov->total_streams; i++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue