Browse Source

Fix OOM error condition in idcin demuxer.

tags/n0.10
Carl Eugen Hoyos 14 years ago
parent
commit
ee884c3023
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/idcin.c

+ 2
- 2
libavformat/idcin.c 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;


Loading…
Cancel
Save