1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

Fix OOM error condition in idcin demuxer.

This commit is contained in:
Carl Eugen Hoyos
2012-01-07 13:14:34 +01:00
parent 9ecccd6e5a
commit ee884c3023

View File

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