mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
avformat/utils: avformat_find_stream_info fix a crash in case of oom
fixes ticket #2767 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0574fe76b8
commit
ccf9211e29
@ -2783,6 +2783,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
||||
} else {
|
||||
pkt = add_to_pktbuf(&ic->packet_buffer, &pkt1,
|
||||
&ic->packet_buffer_end);
|
||||
if (!pkt)
|
||||
goto find_stream_info_err;
|
||||
if ((ret = av_dup_packet(pkt)) < 0)
|
||||
goto find_stream_info_err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user