mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avformat/dfa: check first frame offset in probe
Fixes probetest failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f66f3819b9
commit
bdab2421a5
@ -28,6 +28,9 @@ static int dfa_probe(AVProbeData *p)
|
|||||||
if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A'))
|
if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A'))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (AV_RL32(p->buf + 16) != 0x80)
|
||||||
|
return AVPROBE_SCORE_MAX / 4;
|
||||||
|
|
||||||
return AVPROBE_SCORE_MAX;
|
return AVPROBE_SCORE_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user