On Sat, Jun 27, 2015 at 11:20 PM, Luca Barbato <[email protected]> wrote:
> Bug-Id: CID 1308152
> ---
>  libavformat/mpjpegdec.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
> index e2a2ece..fda4c38 100644
> --- a/libavformat/mpjpegdec.c
> +++ b/libavformat/mpjpegdec.c
> @@ -123,6 +123,8 @@ static int mpjpeg_read_header(AVFormatContext *s)
>          return AVERROR_INVALIDDATA;
>
>      st = avformat_new_stream(s, NULL);
> +    if (!st)
> +        return AVERROR(ENOMEM);

lgtm

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

Reply via email to