You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ismindex: check return value of avio_open_dyn_buf()
Fixes CID733723 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -251,7 +251,10 @@ static int get_video_private_data(struct VideoFile *vf, AVCodecContext *codec)
|
|||||||
if (codec->codec_id == AV_CODEC_ID_VC1)
|
if (codec->codec_id == AV_CODEC_ID_VC1)
|
||||||
return get_private_data(vf, codec);
|
return get_private_data(vf, codec);
|
||||||
|
|
||||||
avio_open_dyn_buf(&io);
|
if (avio_open_dyn_buf(&io) < 0) {
|
||||||
|
err = AVERROR(ENOMEM);
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
if (codec->extradata_size < 11 || codec->extradata[0] != 1)
|
if (codec->extradata_size < 11 || codec->extradata[0] != 1)
|
||||||
goto fail;
|
goto fail;
|
||||||
sps_size = AV_RB16(&codec->extradata[6]);
|
sps_size = AV_RB16(&codec->extradata[6]);
|
||||||
|
Reference in New Issue
Block a user