]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/imx_dump_header_bsf.c
lavc/pnm: Support decoding ya16.
[ffmpeg] / libavcodec / imx_dump_header_bsf.c
index be43fbc159849346c87ccfdd4a7f274386252a39..d53f338a4fa1d998a96523f42a26b42aff9b670a 100644 (file)
@@ -43,6 +43,8 @@ static int imx_dump_header(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx
     }
 
     *poutbuf = av_malloc(buf_size + 20 + FF_INPUT_BUFFER_PADDING_SIZE);
+    if (!*poutbuf)
+        return AVERROR(ENOMEM);
     poutbufp = *poutbuf;
     bytestream_put_buffer(&poutbufp, imx_header, 16);
     bytestream_put_byte(&poutbufp, 0x83); /* KLV BER long form */