OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98084ad
)
lavf/img2dec: Skip SOS when auto-detecting jpeg.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Mon, 29 Feb 2016 10:58:16 +0000
(11:58 +0100)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Mon, 29 Feb 2016 10:58:16 +0000
(11:58 +0100)
Improves jpeg auto-detection.
libavformat/img2dec.c
patch
|
blob
|
history
diff --git
a/libavformat/img2dec.c
b/libavformat/img2dec.c
index
28a1fdb
..
94cce93
100644
(file)
--- a/
libavformat/img2dec.c
+++ b/
libavformat/img2dec.c
@@
-715,6
+715,7
@@
static int jpeg_probe(AVProbeData *p)
state = 0xC0;
break;
case 0xDA:
+ i += AV_RB16(&b[i + 2]) + 1;
if (state != 0xC0 && state != 0xDA)
return 0;
state = 0xDA;