summaryrefslogtreecommitdiff
path: root/libavcodec/h264_redundant_pps_bsf.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-06 00:34:25 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-07 04:46:51 +0200
commit1bdbc50bf4379d3993b47b8510045e4d236de555 (patch)
treedeeaeb14d342a2c3a71068322362ab23731224e0 /libavcodec/h264_redundant_pps_bsf.c
parentfc3f5cd149326b0a478c9a4a34acc22cf757ef02 (diff)
avcodec/cbs: Remove unused function parameters
Several cbs-functions had an unused CodedBitstreamContext parameter. This commit removes these. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/h264_redundant_pps_bsf.c')
-rw-r--r--libavcodec/h264_redundant_pps_bsf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264_redundant_pps_bsf.c b/libavcodec/h264_redundant_pps_bsf.c
index 8f69780951..a8af4105cf 100644
--- a/libavcodec/h264_redundant_pps_bsf.c
+++ b/libavcodec/h264_redundant_pps_bsf.c
@@ -95,7 +95,7 @@ static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *pkt)
if (!au_has_sps) {
av_log(bsf, AV_LOG_VERBOSE, "Deleting redundant PPS "
"at %"PRId64".\n", pkt->pts);
- ff_cbs_delete_unit(ctx->input, au, i);
+ ff_cbs_delete_unit(au, i);
i--;
continue;
}
@@ -113,7 +113,7 @@ static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *pkt)
err = 0;
fail:
- ff_cbs_fragment_reset(ctx->output, au);
+ ff_cbs_fragment_reset(au);
if (err < 0)
av_packet_unref(pkt);
@@ -161,7 +161,7 @@ static int h264_redundant_pps_init(AVBSFContext *bsf)
err = 0;
fail:
- ff_cbs_fragment_reset(ctx->output, au);
+ ff_cbs_fragment_reset(au);
return err;
}
@@ -175,7 +175,7 @@ static void h264_redundant_pps_close(AVBSFContext *bsf)
{
H264RedundantPPSContext *ctx = bsf->priv_data;
- ff_cbs_fragment_free(ctx->input, &ctx->access_unit);
+ ff_cbs_fragment_free(&ctx->access_unit);
ff_cbs_close(&ctx->input);
ff_cbs_close(&ctx->output);
}