[FFmpeg-devel] [PATCH] Bonk decoder and demuxer

Michael Niedermayer michael at niedermayer.cc
Thu Apr 28 15:04:19 CEST 2016


On Thu, Apr 28, 2016 at 01:13:34PM +0200, Paul B Mahol wrote:
> Hi,
> 
> patches attached.
[...]

> +static int bonk_probe(AVProbeData *p)
> +{
> +    int i;
> +
> +    for (i = 0; i < p->buf_size - 5; i++) {
> +        if (!p->buf[i] && AV_RL32(p->buf + i + 1) == MKTAG('B','O','N','K'))
> +            return AVPROBE_SCORE_MAX;
> +        else if (!p->buf[i])
> +            break;
> +    }
> +
> +    return 0;
> +}
> +

this fails probetest

tools/probetest 256 4096
testing size=1
testing size=2
testing size=4
testing size=8
testing size=16
testing size=32
testing size=64
testing size=128
testing size=256
testing size=512
Failure of bonk probing code with score=100 type=3 p=8B2 size=512
testing size=1024
testing size=2048

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160428/132de6ab/attachment.sig>


More information about the ffmpeg-devel mailing list