[FFmpeg-devel] [PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

Moritz Barsnick barsnick at gmx.net
Mon Jun 8 12:18:57 EEST 2020


On Sat, Jun 06, 2020 at 11:42:17 +0530, gautamramk at gmail.com wrote:
> +static uint8_t info_marker(uint16_t marker)

Usually ffmpeg uses type int as a replacement for bool (but I'm not
sure on this).

> +    else
> +        if (marker > 0xFF00) return 1;
> +    return 0;

Should be
       else if (marker > 0xFF00)
           return 1;

> +    if(s->flags & PARSER_FLAG_COMPLETE_FRAMES) {
       if (

> +        next= buf_size;
       next = buf_size;

> +    } else {
> +        next= find_frame_end(m, buf, buf_size);
ditto

Moritz


More information about the ffmpeg-devel mailing list