Skip to content
Snippets Groups Projects
Commit 8ab3b71e authored by Vittorio Giovara's avatar Vittorio Giovara
Browse files

idcin: fix return check

CC: libav-stable@libav.org
Bug-Id: CID 732198
parent 0034314a
No related branches found
No related tags found
No related merge requests found
...@@ -317,9 +317,9 @@ static int idcin_read_packet(AVFormatContext *s, ...@@ -317,9 +317,9 @@ static int idcin_read_packet(AVFormatContext *s,
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
AVPALETTE_SIZE); AVPALETTE_SIZE);
if (ret < 0) { if (!pal) {
av_free_packet(pkt); av_free_packet(pkt);
return ret; return AVERROR(ENOMEM);
} }
memcpy(pal, palette, AVPALETTE_SIZE); memcpy(pal, palette, AVPALETTE_SIZE);
pkt->flags |= AV_PKT_FLAG_KEY; 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