[FFmpeg-cvslog] flvdec: fix segfault in amf_parse_object() due to NULL key
Justin Ruggles
git at videolan.org
Tue Apr 5 02:33:08 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sun Apr 3 15:15:36 2011 -0400| [e3c007bb43d991836e2ebf941d14a04903ece654] | committer: Justin Ruggles
flvdec: fix segfault in amf_parse_object() due to NULL key
fixes Issue 2674
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3c007bb43d991836e2ebf941d14a04903ece654
---
libavformat/flvdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index ef26b05..f27b70c 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -211,7 +211,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
case AMF_DATA_TYPE_OBJECT: {
unsigned int keylen;
- if (!strcmp(KEYFRAMES_TAG, key) && depth == 1)
+ if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
return -1;
More information about the ffmpeg-cvslog
mailing list