提交 209ee680 编写于 作者: M Matthieu Bouron 提交者: Vittorio Giovara

mov: Fix stsc_count comparison

Signed-off-by: NVittorio Giovara <vittorio.giovara@gmail.com>
上级 a1f6a2df
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册