projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f624e8
)
sample size is 1 if bits per sample is 8 and mono channel
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Thu, 3 Aug 2006 16:22:01 +0000
(16:22 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Thu, 3 Aug 2006 16:22:01 +0000
(16:22 +0000)
Originally committed as revision 5920 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
0b3380e
..
fc6006d
100644
(file)
--- 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;