diff options
author | James Almer <jamrial@gmail.com> | 2023-06-17 13:06:49 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-19 12:57:31 -0300 |
commit | f7e0af5edc9e7c1315da35a98f017cb497f65ad4 (patch) | |
tree | 26ebb1619fc9f5ae63b571d8bbaf37c05f15f991 | |
parent | 1e189fed7aba09e7b2198fd5460331ea9501d248 (diff) | |
download | ffmpeg-f7e0af5edc9e7c1315da35a98f017cb497f65ad4.tar.gz |
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>
-rw-r--r-- | libavcodec/evc_parse.c | 6 | ||||
-rw-r--r-- | libavcodec/evc_parse.h | 6 | ||||
-rw-r--r-- | libavcodec/evc_parser.c | 2 |
3 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index a8e6356b96..1fe58c8050 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c @@ -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; diff --git a/libavcodec/evc_parse.h b/libavcodec/evc_parse.h index b5462f5711..2748f8dfbf 100644 --- a/libavcodec/evc_parse.h +++ b/libavcodec/evc_parse.h @@ -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; diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index 1fd8aac1dc..4fd8c49fd4 100644 --- a/libavcodec/evc_parser.c +++ b/libavcodec/evc_parser.c @@ -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) { |