Commit 4931bb49 authored by aurel's avatar aurel

Fix a crash when probing img2 format with a NULL filename.

patch by elupus _at_ ecce.se


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7335 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be469ebc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment