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:
e1023aa
)
lavf/vplayerdec: Improve auto-detection.
author
Clément Bœsch
<ubitux@gmail.com>
Fri, 15 Jul 2016 08:29:14 +0000
(10:29 +0200)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 15 Jul 2016 08:36:05 +0000
(10:36 +0200)
Fixes the incorrect detection of 16_selma_OneFrame_QP39.yuv (gray16le
rawvideo) as vplayer format.
libavformat/vplayerdec.c
patch
|
blob
|
history
diff --git
a/libavformat/vplayerdec.c
b/libavformat/vplayerdec.c
index
897c408
..
49943d0
100644
(file)
--- a/
libavformat/vplayerdec.c
+++ b/
libavformat/vplayerdec.c
@@
-36,8
+36,8
@@
static int vplayer_probe(AVProbeData *p)
char c;
const unsigned char *ptr = p->buf;
- if ((sscanf(ptr, "%*
d:%*d:%*d.%*
d%c", &c) == 1 ||
- sscanf(ptr, "%*
d:%*d:%*d%c",
&c) == 1) && strchr(": =", c))
+ if ((sscanf(ptr, "%*
3d:%*2d:%*2d.%*2
d%c", &c) == 1 ||
+ sscanf(ptr, "%*
3d:%*2d:%*2d%c",
&c) == 1) && strchr(": =", c))
return AVPROBE_SCORE_MAX;
return 0;
}