git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4d0e2e
)
Fix a crash when probing img2 format with a NULL filename.
author
Joakim Plate
<elupus@ecce.se>
Wed, 20 Dec 2006 23:33:50 +0000
(23:33 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Wed, 20 Dec 2006 23:33:50 +0000
(23:33 +0000)
patch by elupus _at_ ecce.se
Originally committed as revision 7335 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/img2.c
patch
|
blob
|
history
diff --git
a/libavformat/img2.c
b/libavformat/img2.c
index
7708584
..
c2538d1
100644
(file)
--- 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