projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a1f6a2d
)
mov: Fix stsc_count comparison
author
Matthieu Bouron
<matthieu.bouron@stupeflix.com>
Wed, 20 Jul 2016 16:48:08 +0000
(18:48 +0200)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Wed, 20 Jul 2016 17:28:35 +0000
(19:28 +0200)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
14be96e
..
c0421d2
100644
(file)
--- 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;