diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-18 01:12:11 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-20 10:38:37 +0100 |
commit | 8ab3b71e4b343cec3fa369a880ab4496d7345154 (patch) | |
tree | 054bdcef1865cdae22ae82d4f395724e8f6f0fbf /libavformat | |
parent | 0034314a69e76a53534a74cceef865cfcb7b42cc (diff) | |
download | ffmpeg-8ab3b71e4b343cec3fa369a880ab4496d7345154.tar.gz |
idcin: fix return check
CC: libav-stable@libav.org
Bug-Id: CID 732198
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/idcin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/idcin.c b/libavformat/idcin.c index 2536e8bd62..3aa0e3ea50 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -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; |