avcodec/evc_parser: stop exporting delay and gop_size

The former is a property a decoder may export, and the latter is only
used in encoding scenarios.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-06-17 13:06:49 -03:00
parent 1e189fed7a
commit f7e0af5edc
3 changed files with 0 additions and 14 deletions

View File

@ -225,7 +225,6 @@ int ff_evc_parse_nal_unit(EVCParserContext *ctx, const uint8_t *buf, int buf_siz
switch(nalu_type) {
case EVC_SPS_NUT: {
EVCParserSPS *sps;
int SubGopLength;
int bit_depth;
sps = ff_evc_parse_sps(&ctx->ps, data, nalu_size);
@ -245,11 +244,6 @@ int ff_evc_parse_nal_unit(EVCParserContext *ctx, const uint8_t *buf, int buf_siz
ctx->height = sps->pic_height_in_luma_samples;
}
SubGopLength = (int)pow(2.0, sps->log2_sub_gop_length);
ctx->gop_size = SubGopLength;
ctx->delay = (sps->sps_max_dec_pic_buffering_minus1) ? sps->sps_max_dec_pic_buffering_minus1 - 1 : SubGopLength + sps->max_num_tid0_ref_pics - 1;
if (sps->profile_idc == 1) ctx->profile = FF_PROFILE_EVC_MAIN;
else ctx->profile = FF_PROFILE_EVC_BASELINE;

View File

@ -117,12 +117,6 @@ typedef struct EVCParserContext {
// Framerate value in the compressed bitstream
AVRational framerate;
// Number of pictures in a group of pictures
int gop_size;
// Number of frames the decoded output will be delayed relative to the encoded input
int delay;
int parsed_extradata;
} EVCParserContext;

View File

@ -72,8 +72,6 @@ static int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const
s->format = ctx->format;
avctx->framerate = ctx->framerate;
avctx->gop_size = ctx->gop_size;
avctx->delay = ctx->delay;
avctx->profile = ctx->profile;
} else if(ctx->nalu_type == EVC_NOIDR_NUT || ctx->nalu_type == EVC_IDR_NUT) {