diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-26 14:41:40 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-26 14:41:40 +0000 |
commit | 18978a491818bba9ffaa616bc6fa370e8acdcba7 (patch) | |
tree | daaa1dee586d20ba73e2d6282c3a9f5f5f9b90e9 | |
parent | 6d680e1b508b0ed61df847a65f0db270c2ef3fc3 (diff) | |
download | ffmpeg-18978a491818bba9ffaa616bc6fa370e8acdcba7.tar.gz |
indentation
Originally committed as revision 12231 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index d5ff2dedd3..067b4c75dd 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1375,26 +1375,26 @@ static void mov_build_index(MOVContext *mov, AVStream *st) goto out; } for (j = 0; j < frames; j++) { - av_add_index_entry(st, current_offset, current_dts, chunk_size, 0, AVINDEX_KEYFRAME); - /* get chunk duration */ - chunk_duration = 0; - while (chunk_samples > 0) { - if (chunk_samples < sc->stts_data[stts_index].count) { - chunk_duration += sc->stts_data[stts_index].duration * chunk_samples; - sc->stts_data[stts_index].count -= chunk_samples; - break; - } else { - chunk_duration += sc->stts_data[stts_index].duration * chunk_samples; - chunk_samples -= sc->stts_data[stts_index].count; - if (stts_index + 1 < sc->stts_count) - stts_index++; + av_add_index_entry(st, current_offset, current_dts, chunk_size, 0, AVINDEX_KEYFRAME); + /* get chunk duration */ + chunk_duration = 0; + while (chunk_samples > 0) { + if (chunk_samples < sc->stts_data[stts_index].count) { + chunk_duration += sc->stts_data[stts_index].duration * chunk_samples; + sc->stts_data[stts_index].count -= chunk_samples; + break; + } else { + chunk_duration += sc->stts_data[stts_index].duration * chunk_samples; + chunk_samples -= sc->stts_data[stts_index].count; + if (stts_index + 1 < sc->stts_count) + stts_index++; + } } - } - current_offset += sc->bytes_per_frame; - dprintf(mov->fc, "AVIndex stream %d, chunk %d, offset %"PRIx64", dts %"PRId64", size %d, " - "duration %d\n", st->index, i, current_offset, current_dts, chunk_size, chunk_duration); - assert(chunk_duration % sc->time_rate == 0); - current_dts += chunk_duration / sc->time_rate; + current_offset += sc->bytes_per_frame; + dprintf(mov->fc, "AVIndex stream %d, chunk %d, offset %"PRIx64", dts %"PRId64", size %d, " + "duration %d\n", st->index, i, current_offset, current_dts, chunk_size, chunk_duration); + assert(chunk_duration % sc->time_rate == 0); + current_dts += chunk_duration / sc->time_rate; } } } |