# HG changeset patch # User bcoudurier # Date 1202769215 0 # Node ID cc71bdb747fed24d8c95c836518bc7e1dc462151 # Parent 5064dffc46b7aa2811d7bfb2df0ee38a80cc3051 cosmetics, indentation, braces diff -r 5064dffc46b7 -r cc71bdb747fe mov.c --- a/mov.c Mon Feb 11 22:32:35 2008 +0000 +++ b/mov.c Mon Feb 11 22:33:35 2008 +0000 @@ -1387,17 +1387,15 @@ 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;