Fix OOM error condition in idcin demuxer.

pull/3/head
Carl Eugen Hoyos 13 years ago
parent 9ecccd6e5a
commit ee884c3023
  1. 4
      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;

Loading…
Cancel
Save