Commit 0f7af67d authored by bcoudurier's avatar bcoudurier

10l, forgot alaw/mulaw mono, use bits_per_sample in fact,

it should correctly set by av_get_bits_per_sample if recognized


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11925 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fabb10e2
...@@ -1387,8 +1387,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) ...@@ -1387,8 +1387,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
stsc_index++; stsc_index++;
chunk_samples = sc->sample_to_chunk[stsc_index].count; chunk_samples = sc->sample_to_chunk[stsc_index].count;
/* get chunk size */ /* get chunk size */
if (sc->sample_size > 1 || if (sc->sample_size > 1 || st->codec->bits_per_sample == 8)
st->codec->codec_id == CODEC_ID_PCM_U8 || st->codec->codec_id == CODEC_ID_PCM_S8)
chunk_size = chunk_samples * sc->sample_size; chunk_size = chunk_samples * sc->sample_size;
else if (sc->samples_per_frame > 0 && 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)) {
......
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