[FFmpeg-devel] [PATCH 05/10] avcodec/evc_parser: stop exporting delay and gop_size
James Almer
jamrial at gmail.com
Sun Jun 18 01:00:10 EEST 2023
The former is a property a decoder may export, and the latter is only
used in encoding scenarios.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/evc_parse.c | 6 ------
libavcodec/evc_parse.h | 6 ------
libavcodec/evc_parser.c | 2 --
3 files changed, 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) {
--
2.41.0
More information about the ffmpeg-devel
mailing list