mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
1e189fed7a
commit
f7e0af5edc
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue