diff options
author | Vitaliy E Sugrobov <vsugrob@hotmail.com> | 2012-11-30 12:58:57 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-30 14:35:11 +0000 |
commit | f83657fcf609e9ac5d290e0a54de2c0d1b818797 (patch) | |
tree | 3931fc5a13942b87b8067cdda926d54a97ae8431 /libavformat/img2dec.c | |
parent | 5603b2bf6e00f0f7d96448535f9fe6c293308225 (diff) | |
download | ffmpeg-streaming-f83657fcf609e9ac5d290e0a54de2c0d1b818797.zip ffmpeg-streaming-f83657fcf609e9ac5d290e0a54de2c0d1b818797.tar.gz |
Add exception for "gif" in image2 probe() method.
Without this exception files with ".gif" extension by default
recognized as input suitable for image2 demuxer rather than gif.
In order to pass image through gif demuxer it was necessary
to use -f gif option.
This change affected 'make fate' test results because previously
image2 demuxer and gif decoder took only first frame of multiframe
test data, which is no longer true with gif demuxer.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 47c0de3..f492bba 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -181,7 +181,7 @@ static int img_read_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; else if (is_glob(p->filename)) return AVPROBE_SCORE_MAX; - else if(av_match_ext(p->filename, "raw")) + else if (av_match_ext(p->filename, "raw") || av_match_ext(p->filename, "gif")) return 5; else return AVPROBE_SCORE_MAX / 2; |