diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-03 16:22:01 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-03 16:22:01 +0000 |
commit | 2965f17b4fd371438fbc2cb401f1562cdda6df5b (patch) | |
tree | cc98f45e7a92381b9c9c66bb4b611c49618ecf4b | |
parent | 7f624e80ef396c83d2e5a20a54b33552746ecebc (diff) | |
download | ffmpeg-2965f17b4fd371438fbc2cb401f1562cdda6df5b.tar.gz |
sample size is 1 if bits per sample is 8 and mono channel
Originally committed as revision 5920 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 0b3380ea50..fc6006d28c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1568,7 +1568,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) stsc_index++; chunk_samples = sc->sample_to_chunk[stsc_index].count; /* get chunk size */ - if (sc->sample_size > 1) + if (sc->sample_size > 1 || st->codec->bits_per_sample == 8) chunk_size = chunk_samples * sc->sample_size; else if (sc->sample_size_v1.den > 0 && (chunk_samples * sc->sample_size_v1.num % sc->sample_size_v1.den == 0)) chunk_size = chunk_samples * sc->sample_size_v1.num / sc->sample_size_v1.den; |