1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Allow last mov chunk to have an arbitrary number of samples.

Fixes ticket #673.
This commit is contained in:
Carl Eugen Hoyos 2011-12-03 12:29:41 +01:00
parent 88bbabcc00
commit 8dcd2a41ec

View File

@ -1741,7 +1741,8 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
unsigned count, chunk_count;
chunk_samples = sc->stsc_data[i].count;
if (sc->samples_per_frame && chunk_samples % sc->samples_per_frame) {
if (i != sc->stsc_count - 1 &&
sc->samples_per_frame && chunk_samples % sc->samples_per_frame) {
av_log(mov->fc, AV_LOG_ERROR, "error unaligned chunk\n");
return;
}