1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

idcin: fix return check

CC: libav-stable@libav.org
Bug-Id: CID 732198
This commit is contained in:
Vittorio Giovara 2014-10-18 01:12:11 +01:00
parent 0034314a69
commit 8ab3b71e4b

View File

@ -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;