You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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
This commit is contained in:
committed by
Aurelien Jacobs
parent
e4d0e2edb9
commit
e825b5009f
@@ -154,7 +154,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
|
|||||||
|
|
||||||
static int image_probe(AVProbeData *p)
|
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))
|
if (av_filename_number_test(p->filename))
|
||||||
return AVPROBE_SCORE_MAX;
|
return AVPROBE_SCORE_MAX;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user