projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0574fe7
)
avformat/utils: avformat_find_stream_info fix a crash in case of oom
author
Piotr Bandurski
<ami_stuff@o2.pl>
Wed, 10 Jul 2013 00:51:41 +0000
(
02:51
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Jul 2013 01:42:06 +0000
(
03:42
+0200)
fixes ticket #2767
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
17dcb25
..
f607be7
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-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);
} 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;
}
if ((ret = av_dup_packet(pkt)) < 0)
goto find_stream_info_err;
}