Commit 8ab3b71e authored by Vittorio Giovara's avatar Vittorio Giovara

idcin: fix return check

CC: libav-stable@libav.org
Bug-Id: CID 732198
parent 0034314a
......@@ -317,9 +317,9 @@ static int idcin_read_packet(AVFormatContext *s,
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
AVPALETTE_SIZE);
if (ret < 0) {
if (!pal) {
av_free_packet(pkt);
return ret;
return AVERROR(ENOMEM);
}
memcpy(pal, palette, AVPALETTE_SIZE);
pkt->flags |= AV_PKT_FLAG_KEY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment