[FFmpeg-cvslog] mov: Fix stsc_count comparison
Matthieu Bouron
git at videolan.org
Wed Feb 1 16:09:11 EET 2017
ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at stupeflix.com> | Wed Jul 20 18:48:08 2016 +0200| [209ee680ce99035202520b900326a57f7fa0aceb] | committer: Vittorio Giovara
mov: Fix stsc_count comparison
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=209ee680ce99035202520b900326a57f7fa0aceb
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 14be96e..c0421d2 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3680,7 +3680,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
/* Keep track of the stsc index for the given sample, then check
* if the stsd index is different from the last used one. */
sc->stsc_sample++;
- if (sc->stsc_index < sc->stsc_count &&
+ if (sc->stsc_index + 1 < sc->stsc_count &&
mov_get_stsc_samples(sc, sc->stsc_index) == sc->stsc_sample) {
sc->stsc_index++;
sc->stsc_sample = 0;
More information about the ffmpeg-cvslog
mailing list