mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
Fix OOM error condition in idcin demuxer.
This commit is contained in:
parent
9ecccd6e5a
commit
ee884c3023
@ -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…
Reference in New Issue
Block a user