Skip to content
Snippets Groups Projects
Commit 3f814891 authored by Paul B Mahol's avatar Paul B Mahol
Browse files

img2dec: check return value of av_new_packet()


Fixes CID703626.

Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent 011f3892
No related branches found
No related tags found
No related merge requests found
......@@ -375,7 +375,8 @@ static int read_packet(AVFormatContext *s1, AVPacket *pkt)
size[0]= 4096;
}
av_new_packet(pkt, size[0] + size[1] + size[2]);
if (av_new_packet(pkt, size[0] + size[1] + size[2]) < 0)
return AVERROR(ENOMEM);
pkt->stream_index = 0;
pkt->flags |= AV_PKT_FLAG_KEY;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment