diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-11 22:33:35 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-11 22:33:35 +0000 |
commit | 311490cccde3a9c78a04489591c24b9b2f6bedc5 (patch) | |
tree | 683a700e9d57f19f075f23c2e98597706d516c58 /libavformat | |
parent | 8cb66fd8f20ab9650eadf77f612d2ea6f44183da (diff) | |
download | ffmpeg-streaming-311490cccde3a9c78a04489591c24b9b2f6bedc5.zip ffmpeg-streaming-311490cccde3a9c78a04489591c24b9b2f6bedc5.tar.gz |
cosmetics, indentation, braces
Originally committed as revision 11910 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 27f171a..f89a028 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1387,17 +1387,15 @@ static void mov_build_index(MOVContext *mov, AVStream *st) st->codec->codec_id == CODEC_ID_PCM_U8 || st->codec->codec_id == CODEC_ID_PCM_S8) chunk_size = chunk_samples * sc->sample_size; else if (sc->samples_per_frame > 0 && - (chunk_samples * sc->bytes_per_frame % sc->samples_per_frame == 0)) - { - if (sc->samples_per_frame < 1024) - chunk_size = chunk_samples * sc->bytes_per_frame / sc->samples_per_frame; - else { - chunk_size = sc->bytes_per_frame; - frames = chunk_samples / sc->samples_per_frame; - chunk_samples = sc->samples_per_frame; - } + (chunk_samples * sc->bytes_per_frame % sc->samples_per_frame == 0)) { + if (sc->samples_per_frame < 1024) + chunk_size = chunk_samples * sc->bytes_per_frame / sc->samples_per_frame; + else { + chunk_size = sc->bytes_per_frame; + frames = chunk_samples / sc->samples_per_frame; + chunk_samples = sc->samples_per_frame; } - else { /* workaround to find nearest next chunk offset */ + } else { /* workaround to find nearest next chunk offset */ chunk_size = INT_MAX; for (j = 0; j < mov->fc->nb_streams; j++) { MOVStreamContext *msc = mov->fc->streams[j]->priv_data; |