[Ffmpeg-cvslog] r5920 - trunk/libavformat/mov.c
bcoudurier
subversion
Thu Aug 3 18:22:02 CEST 2006
Author: bcoudurier
Date: Thu Aug 3 18:22:01 2006
New Revision: 5920
Modified:
trunk/libavformat/mov.c
Log:
sample size is 1 if bits per sample is 8
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c (original)
+++ trunk/libavformat/mov.c Thu Aug 3 18:22:01 2006
@@ -1568,7 +1568,7 @@
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;
More information about the ffmpeg-cvslog
mailing list