On Wed, Jan 30, 2013 at 04:46:55PM +0100, Anton Khirnov wrote:
> ---
>  libavcodec/yop.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/libavcodec/yop.c b/libavcodec/yop.c
> index 69700bd..be996c2 100644
> --- a/libavcodec/yop.c
> +++ b/libavcodec/yop.c
> @@ -89,6 +89,11 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
>          return AVERROR_INVALIDDATA;
>      }
>  
> +    if (avctx->extradata_size < 3) {
> +        av_log(avctx, AV_LOG_ERROR, "Missing or incomplete extradata.\n");
> +        return AVERROR_INVALIDDATA;
> +    }
> +
>      avctx->pix_fmt = AV_PIX_FMT_PAL8;
>  
>      s->num_pal_colors = avctx->extradata[0];
> -- 

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

Reply via email to