diff mbox series

[FFmpeg-devel,05/10] avcodec/evc_parser: stop exporting delay and gop_size

Message ID 20230617220015.12669-2-jamrial@gmail.com
State Accepted
Commit f7e0af5edc9e7c1315da35a98f017cb497f65ad4
Headers show
Series [FFmpeg-devel,1/3] avcodec/evc_frame_merge: use av_fast_realloc() | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

James Almer June 17, 2023, 10 p.m. UTC
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>
---
 libavcodec/evc_parse.c  | 6 ------
 libavcodec/evc_parse.h  | 6 ------
 libavcodec/evc_parser.c | 2 --
 3 files changed, 14 deletions(-)
diff mbox series

Patch

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) {