[Ffmpeg-cvslog] r7335 - trunk/libavformat/img2.c
aurel
subversion
Thu Dec 21 00:33:50 CET 2006
Author: aurel
Date: Thu Dec 21 00:33:50 2006
New Revision: 7335
Modified:
trunk/libavformat/img2.c
Log:
Fix a crash when probing img2 format with a NULL filename.
patch by elupus _at_ ecce.se
Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c (original)
+++ trunk/libavformat/img2.c Thu Dec 21 00:33:50 2006
@@ -154,7 +154,7 @@
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
More information about the ffmpeg-cvslog
mailing list