Skip to content
Snippets Groups Projects
Commit ee884c30 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

Fix OOM error condition in idcin demuxer.

parent 9ecccd6e
Branches
Tags
No related merge requests found
......@@ -266,8 +266,8 @@ static int idcin_read_packet(AVFormatContext *s,
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
AVPALETTE_SIZE);
if (ret < 0)
return ret;
if (!pal)
return AVERROR(ENOMEM);
memcpy(pal, palette, AVPALETTE_SIZE);
}
pkt->stream_index = idcin->video_stream_index;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment