You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Fix OOM error condition in idcin demuxer.
This commit is contained in:
@@ -266,8 +266,8 @@ static int idcin_read_packet(AVFormatContext *s,
|
|||||||
|
|
||||||
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
|
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
|
||||||
AVPALETTE_SIZE);
|
AVPALETTE_SIZE);
|
||||||
if (ret < 0)
|
if (!pal)
|
||||||
return ret;
|
return AVERROR(ENOMEM);
|
||||||
memcpy(pal, palette, AVPALETTE_SIZE);
|
memcpy(pal, palette, AVPALETTE_SIZE);
|
||||||
}
|
}
|
||||||
pkt->stream_index = idcin->video_stream_index;
|
pkt->stream_index = idcin->video_stream_index;
|
||||||
|
Reference in New Issue
Block a user