aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2006-12-20 23:33:50 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-12-20 23:33:50 +0000
commite825b5009f88a2ac78d05f960a747ddc6ad4ed22 (patch)
tree21f2a5c605c79a7ffe43d6e719d23a4212508da6
parente4d0e2edb977f08a9dffaf997496ae8686988784 (diff)
downloadffmpeg-e825b5009f88a2ac78d05f960a747ddc6ad4ed22.tar.gz
Fix a crash when probing img2 format with a NULL filename.
patch by elupus _at_ ecce.se Originally committed as revision 7335 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/img2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c
index 7708584067..c2538d1e98 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -154,7 +154,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
static int image_probe(AVProbeData *p)
{
- if (av_str2id(img_tags, p->filename)) {
+ if (p->filename && av_str2id(img_tags, p->filename)) {
if (av_filename_number_test(p->filename))
return AVPROBE_SCORE_MAX;
else