On 13/07/16 21:02, Vittorio Giovara wrote:
> From: Matthieu Bouron <[email protected]>
> 
> Signed-off-by: Vittorio Giovara <[email protected]>
> ---
> CCing the author in the hope that future fixes get more shared
> and separated from merge commits.
> Vittorio
> 
>  libavformat/mov.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 0cb3271..e0673e6 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 < sc->stsc_count - 1 &&
>              mov_get_stsc_samples(sc, sc->stsc_index) == sc->stsc_sample) {
>              sc->stsc_index++;
>              sc->stsc_sample = 0;
> 

This looks fishy. Why the -1 ?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to