Commit 3d891010 authored by bcoudurier's avatar bcoudurier

cosmetics, indentation, braces

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11910 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 008c8a19
......@@ -1387,8 +1387,7 @@ 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))
{
(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 {
......@@ -1396,8 +1395,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment