avformat/h264dec: Fix detection of invalid h264 with 0x100 startcodes
Fies Ticket4325 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2e15f07cfd
commit
dae89802a6
@ -47,8 +47,10 @@ static int h264_probe(AVProbeData *p)
|
|||||||
return 0;
|
return 0;
|
||||||
if (ref_zero[type] == -1 && !ref_idc)
|
if (ref_zero[type] == -1 && !ref_idc)
|
||||||
return 0;
|
return 0;
|
||||||
if (ref_zero[type] == 2)
|
if (ref_zero[type] == 2) {
|
||||||
res++;
|
if (!(code == 0x100 && !p->buf[i + 1] && !p->buf[i + 2]))
|
||||||
|
res++;
|
||||||
|
}
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user