avcodec/h264_redundant_pps_bsf: Remove flush callback

extradata_pic_init_qp is unset since
fa75e43875
(and resetting current_pic_init_qp to the value it had in extradata
never made much sense).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-11-30 18:16:17 +01:00
parent 531d289cfd
commit 5e7bdbfff6

View file

@ -33,7 +33,6 @@ typedef struct H264RedundantPPSContext {
int global_pic_init_qp;
int current_pic_init_qp;
int extradata_pic_init_qp;
} H264RedundantPPSContext;
@ -111,12 +110,6 @@ static int h264_redundant_pps_update_fragment(AVBSFContext *bsf,
return 0;
}
static void h264_redundant_pps_flush(AVBSFContext *bsf)
{
H264RedundantPPSContext *ctx = bsf->priv_data;
ctx->current_pic_init_qp = ctx->extradata_pic_init_qp;
}
static const CBSBSFType h264_redundant_pps_type = {
.codec_id = AV_CODEC_ID_H264,
.fragment_name = "access unit",
@ -141,7 +134,6 @@ const AVBitStreamFilter ff_h264_redundant_pps_bsf = {
.name = "h264_redundant_pps",
.priv_data_size = sizeof(H264RedundantPPSContext),
.init = &h264_redundant_pps_init,
.flush = &h264_redundant_pps_flush,
.close = &ff_cbs_bsf_generic_close,
.filter = &ff_cbs_bsf_generic_filter,
.codec_ids = h264_redundant_pps_codec_ids,