mirror of https://git.ffmpeg.org/ffmpeg.git
cosmetics, add some whitespaces and empty lines
Originally committed as revision 17975 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0304109df6
commit
6c00a9dec2
|
@ -1187,6 +1187,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
|
|||
"size %d, distance %d, keyframe %d\n", st->index, current_sample,
|
||||
current_offset, current_dts, sample_size, distance, keyframe);
|
||||
}
|
||||
|
||||
current_offset += sample_size;
|
||||
assert(sc->stts_data[stts_index].duration % sc->time_rate == 0);
|
||||
current_dts += sc->stts_data[stts_index].duration / sc->time_rate;
|
||||
|
@ -1272,10 +1273,12 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
|
|||
st->index);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!sc->time_rate)
|
||||
sc->time_rate = 1;
|
||||
if (!sc->time_scale)
|
||||
sc->time_scale = c->time_scale;
|
||||
|
||||
av_set_pts_info(st, 64, sc->time_rate, sc->time_scale);
|
||||
|
||||
if (st->codec->codec_type == CODEC_TYPE_AUDIO &&
|
||||
|
@ -1993,10 +1996,12 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
|
|||
|
||||
static int mov_read_close(AVFormatContext *s)
|
||||
{
|
||||
int i, j;
|
||||
MOVContext *mov = s->priv_data;
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < s->nb_streams; i++) {
|
||||
MOVStreamContext *sc = s->streams[i]->priv_data;
|
||||
|
||||
av_freep(&sc->ctts_data);
|
||||
for (j = 0; j < sc->drefs_count; j++)
|
||||
av_freep(&sc->drefs[j].path);
|
||||
|
@ -2004,6 +2009,7 @@ static int mov_read_close(AVFormatContext *s)
|
|||
if (sc->pb && sc->pb != s->pb)
|
||||
url_fclose(sc->pb);
|
||||
}
|
||||
|
||||
if (mov->dv_demux) {
|
||||
for(i = 0; i < mov->dv_fctx->nb_streams; i++) {
|
||||
av_freep(&mov->dv_fctx->streams[i]->codec);
|
||||
|
@ -2012,7 +2018,9 @@ static int mov_read_close(AVFormatContext *s)
|
|||
av_freep(&mov->dv_fctx);
|
||||
av_freep(&mov->dv_demux);
|
||||
}
|
||||
|
||||
av_freep(&mov->trex_data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue