Revision 6a1f4535

View differences:

libavformat/mov.c
1387 1387
                stsc_index++;
1388 1388
            chunk_samples = sc->sample_to_chunk[stsc_index].count;
1389 1389
            /* get chunk size */
1390
            if (sc->sample_size > 1 ||
1391
                st->codec->codec_id == CODEC_ID_PCM_U8 || st->codec->codec_id == CODEC_ID_PCM_S8)
1390
            if (sc->sample_size > 1 || st->codec->bits_per_sample == 8)
1392 1391
                chunk_size = chunk_samples * sc->sample_size;
1393 1392
            else if (sc->samples_per_frame > 0 &&
1394 1393
                     (chunk_samples * sc->bytes_per_frame % sc->samples_per_frame == 0)) {

Also available in: Unified diff