X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fimx_dump_header_bsf.c;h=d53f338a4fa1d998a96523f42a26b42aff9b670a;hb=6c559a0a9d3e8eb10e2b92b6793e11038ab86fcf;hp=be43fbc159849346c87ccfdd4a7f274386252a39;hpb=de8f70b8e02dd0b036c5bd0b219dd495de976b58;p=ffmpeg diff --git a/libavcodec/imx_dump_header_bsf.c b/libavcodec/imx_dump_header_bsf.c index be43fbc1598..d53f338a4fa 100644 --- a/libavcodec/imx_dump_header_bsf.c +++ b/libavcodec/imx_dump_header_bsf.c @@ -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 */