From 1bdbc50bf4379d3993b47b8510045e4d236de555 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 6 Jul 2020 00:34:25 +0200 Subject: avcodec/cbs: Remove unused function parameters Several cbs-functions had an unused CodedBitstreamContext parameter. This commit removes these. Reviewed-by: Mark Thompson Signed-off-by: Andreas Rheinhardt --- libavcodec/cbs_mpeg2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/cbs_mpeg2.c') diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c index 97f7889cbb..8b6e5a9852 100644 --- a/libavcodec/cbs_mpeg2.c +++ b/libavcodec/cbs_mpeg2.c @@ -207,7 +207,7 @@ static int cbs_mpeg2_split_fragment(CodedBitstreamContext *ctx, final = 1; } - err = ff_cbs_insert_unit_data(ctx, frag, i, unit_type, (uint8_t*)start, + err = ff_cbs_insert_unit_data(frag, i, unit_type, (uint8_t*)start, unit_size, frag->data_ref); if (err < 0) return err; @@ -235,7 +235,7 @@ static int cbs_mpeg2_read_unit(CodedBitstreamContext *ctx, MPEG2RawSlice *slice; int pos, len; - err = ff_cbs_alloc_unit_content(ctx, unit, sizeof(*slice), + err = ff_cbs_alloc_unit_content(unit, sizeof(*slice), &cbs_mpeg2_free_slice); if (err < 0) return err; @@ -265,7 +265,7 @@ static int cbs_mpeg2_read_unit(CodedBitstreamContext *ctx, case start_code: \ { \ type *header; \ - err = ff_cbs_alloc_unit_content(ctx, unit, \ + err = ff_cbs_alloc_unit_content(unit, \ sizeof(*header), free_func); \ if (err < 0) \ return err; \ -- cgit v1.2.3