History

lavf/img2dec: Increase detection score of jpgs without EOI.

Also increases the score for large jpeg files. Fixes autodetection for the file from mpv issue 3973.

Carl Eugen Hoyos committed 9 years ago

Commit 375a22a1 parent 4acea511 file · +2 −0Browse files

Unified · Split

libavformat/img2dec.c+2−0
@@ -755,6 +755,8 @@ static int jpeg_probe(AVProbeData *p) · 754 unmodified lines
755 755
756 if (state == EOI)756 if (state == EOI)
757 return AVPROBE_SCORE_EXTENSION + 1;757 return AVPROBE_SCORE_EXTENSION + 1;
758 if (state == SOS)
759 return AVPROBE_SCORE_EXTENSION / 2 + 1;
758 return AVPROBE_SCORE_EXTENSION / 8;760 return AVPROBE_SCORE_EXTENSION / 8;
759}761}
760 762

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t