diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-07 16:14:34 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-07 16:14:34 +0400 |
commit | ee884c30233856b69fb87345944b4cdfe666fc0f (patch) | |
tree | 507ca8737235989a0a391ce70c13d6c540e5e55c /libavformat/idcin.c | |
parent | 9ecccd6e5a21e3d9091a9e8dd40221b6812cb17e (diff) |
Fix OOM error condition in idcin demuxer.
Diffstat (limited to 'libavformat/idcin.c')
-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 878378febd..57f81c813d 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -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; |