On Wed, Mar 21, 2012 at 11:27:06AM -0700, Alex Converse wrote:
> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> CC: [email protected]
> ---
>  libavformat/mov.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 7b21423..75dec37 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -2713,7 +2713,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket 
> *pkt)
>  
>      pkt->stream_index = sc->ffindex;
>      pkt->dts = sample->timestamp;
> -    if (sc->ctts_data) {
> +    if (sc->ctts_data && sc->ctts_index < sc->ctts_count) {
>          pkt->pts = pkt->dts + sc->dts_shift + 
> sc->ctts_data[sc->ctts_index].duration;
>          /* update ctts context */
>          sc->ctts_sample++;
> -- 

LGTM
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to