summaryrefslogtreecommitdiff
path: root/libavcodec/trace_headers_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/trace_headers_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/trace_headers_bsf.c')
-rw-r--r--libavcodec/trace_headers_bsf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/trace_headers_bsf.c b/libavcodec/trace_headers_bsf.c
index 8ee4dbd668..b891730bac 100644
--- a/libavcodec/trace_headers_bsf.c
+++ b/libavcodec/trace_headers_bsf.c
@@ -52,7 +52,7 @@ static int trace_headers_init(AVBSFContext *bsf)
err = ff_cbs_read_extradata(ctx->cbc, frag, bsf->par_in);
- ff_cbs_fragment_reset(ctx->cbc, frag);
+ ff_cbs_fragment_reset(frag);
}
return err;
@@ -62,7 +62,7 @@ static void trace_headers_close(AVBSFContext *bsf)
{
TraceHeadersContext *ctx = bsf->priv_data;
- ff_cbs_fragment_free(ctx->cbc, &ctx->fragment);
+ ff_cbs_fragment_free(&ctx->fragment);
ff_cbs_close(&ctx->cbc);
}
@@ -97,7 +97,7 @@ static int trace_headers(AVBSFContext *bsf, AVPacket *pkt)
err = ff_cbs_read_packet(ctx->cbc, frag, pkt);
- ff_cbs_fragment_reset(ctx->cbc, frag);
+ ff_cbs_fragment_reset(frag);
if (err < 0)
av_packet_unref(pkt);