Commit dae89802 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/h264dec: Fix detection of invalid h264 with 0x100 startcodes

Fies Ticket4325
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2e15f07c
......@@ -47,8 +47,10 @@ static int h264_probe(AVProbeData *p)
return 0;
if (ref_zero[type] == -1 && !ref_idc)
return 0;
if (ref_zero[type] == 2)
res++;
if (ref_zero[type] == 2) {
if (!(code == 0x100 && !p->buf[i + 1] && !p->buf[i + 2]))
res++;
}
switch (type) {
case 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment