[FFmpeg-devel] [PATCH v7 1/3] libavcodec/jpeg2000dec.c: Split function and modify structs for PPM marker support

Moritz Barsnick barsnick at gmx.net
Mon Mar 30 17:04:26 EEST 2020


On Mon, Mar 30, 2020 at 10:36:30 +0530, gautamramk at gmail.com wrote:
> -    if (bytestream2_get_bytes_left(&s->g) == 0 && s->bit_index == 8) {
> -        if (*tp_index < FF_ARRAY_ELEMS(tile->tile_part) - 1) {
> -            s->g = tile->tile_part[++(*tp_index)].tpg;
> +    // Select appropriate stream to read from
> +    if (tile->has_ppt) {
> +        s->g = tile->packed_headers_stream;
> +    } else {
> +            s->g = tile->tile_part[*tp_index].tpg;
> +            if (bytestream2_get_bytes_left(&s->g) == 0 && s->bit_index == 8) {
> +                if (*tp_index < FF_ARRAY_ELEMS(tile->tile_part) - 1) {
> +                    s->g = tile->tile_part[++(*tp_index)].tpg;
> +            }

Identation looks incorrect here.

Moritz


More information about the ffmpeg-devel mailing list