[FFmpeg-devel] [PATCH v5 3/5] lavc/avs3_parser: add avs3 parser
Moritz Barsnick
barsnick at gmx.net
Wed Aug 19 17:14:04 EEST 2020
On Wed, Aug 19, 2020 at 14:25:54 +0800, hwrenx at 126.com wrote:
> + for (; cur < buf_size; ++cur) {
> + state = (state << 8) | buf[cur];
> + if (ISPIC(buf[cur])){
> + ++cur;
ffmpeg prefers the "cur++" style (twice in this block, and elsewhere).
> + // Skip bits: resv(1)
> + // bitrate_low(18)
> + // resv(1)
> + // bitrate_high(12)
> + // low_delay
> + skip_bits(&gb, 32);
Is "low_delay" part of the skipped bits? The rest already adds up to
32.
> + av_log(avctx, AV_LOG_DEBUG,
> + "avs3 parse seq hdr: profile %d; coded wxh: %dx%d; "
> + "frame_rate_code %d\n", profile, avctx->width, avctx->height, ratecode);
Incorrect indentation.
Cheers,
Moritz
More information about the ffmpeg-devel
mailing list