summaryrefslogtreecommitdiff
path: root/libavcodec/h265_metadata_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/h265_metadata_bsf.c
parentfc3f5cd149326b0a478c9a4a34acc22cf757ef02 (diff)
downloadffmpeg-1bdbc50bf4379d3993b47b8510045e4d236de555.tar.gz
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/h265_metadata_bsf.c')
-rw-r--r--libavcodec/h265_metadata_bsf.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libavcodec/h265_metadata_bsf.c b/libavcodec/h265_metadata_bsf.c
index 749456157b..b48a0bd3e9 100644
--- a/libavcodec/h265_metadata_bsf.c
+++ b/libavcodec/h265_metadata_bsf.c
@@ -383,7 +383,7 @@ static int h265_metadata_update_side_data(AVBSFContext *bsf, AVPacket *pkt)
return AVERROR(ENOMEM);
memcpy(side_data, au->data, au->data_size);
- ff_cbs_fragment_reset(ctx->cbc, au);
+ ff_cbs_fragment_reset(au);
return 0;
}
@@ -417,7 +417,7 @@ static int h265_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
// If an AUD is present, it must be the first NAL unit.
if (au->units[0].type == HEVC_NAL_AUD) {
if (ctx->aud == REMOVE)
- ff_cbs_delete_unit(ctx->cbc, au, 0);
+ ff_cbs_delete_unit(au, 0);
} else {
if (ctx->aud == INSERT) {
H265RawAUD *aud = &ctx->aud_nal;
@@ -449,8 +449,7 @@ static int h265_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
};
aud->pic_type = pic_type;
- err = ff_cbs_insert_unit_content(ctx->cbc, au,
- 0, HEVC_NAL_AUD, aud, NULL);
+ err = ff_cbs_insert_unit_content(au, 0, HEVC_NAL_AUD, aud, NULL);
if (err < 0) {
av_log(bsf, AV_LOG_ERROR, "Failed to insert AUD.\n");
goto fail;
@@ -482,7 +481,7 @@ static int h265_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
err = 0;
fail:
- ff_cbs_fragment_reset(ctx->cbc, au);
+ ff_cbs_fragment_reset(au);
if (err < 0)
av_packet_unref(pkt);
@@ -532,7 +531,7 @@ static int h265_metadata_init(AVBSFContext *bsf)
err = 0;
fail:
- ff_cbs_fragment_reset(ctx->cbc, au);
+ ff_cbs_fragment_reset(au);
return err;
}
@@ -540,7 +539,7 @@ static void h265_metadata_close(AVBSFContext *bsf)
{
H265MetadataContext *ctx = bsf->priv_data;
- ff_cbs_fragment_free(ctx->cbc, &ctx->access_unit);
+ ff_cbs_fragment_free(&ctx->access_unit);
ff_cbs_close(&ctx->cbc);
}