[FFmpeg-devel] [PATCH 1/3] avformat: add moflex demuxer

Michael Niedermayer michael at niedermayer.cc
Tue Aug 25 22:09:12 EEST 2020


On Tue, Aug 25, 2020 at 01:28:56AM +0200, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> [WIP] Missing video decoder.
[...]

> +static int moflex_probe(const AVProbeData *p)
> +{
> +    if (p->buf[0] != 0x4C && p->buf[1] != 0x32)
> +        return 0;
> +
> +    return AVPROBE_SCORE_MAX / 3;
> +}

It would be better to check more of the file (and maybe then also have a
higher score)
This as it is fails probetest
tools/probetest 256 4096
testing size=1
Failure of moflex probing code with score=33 type=0 p=53F size=1

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If the United States is serious about tackling the national security threats 
related to an insecure 5G network, it needs to rethink the extent to which it
values corporate profits and government espionage over security.-Bruce Schneier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200825/e7f07622/attachment.sig>


More information about the ffmpeg-devel mailing list