Skip to content

Commit

Permalink
Remove unused arg in avifEncoderWriteHandlerBox()
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon committed Aug 20, 2024
1 parent 9859239 commit 134cd72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ static avifResult avifEncoderWriteExtendedColorProperties(avifRWStream * dedupSt
return AVIF_RESULT_OK;
}

static avifResult avifEncoderWriteHandlerBox(avifEncoder * encoder, avifRWStream * s, const char handler_type[4])
static avifResult avifEncoderWriteHandlerBox(avifRWStream * s, const char handler_type[4])
{
avifBoxMarker hdlr;
AVIF_CHECKRES(avifRWStreamWriteFullBox(s, "hdlr", AVIF_BOX_SIZE_TBD, 0, 0, &hdlr));
Expand Down Expand Up @@ -803,7 +803,7 @@ static avifResult avifEncoderWriteTrackMetaBox(avifEncoder * encoder, avifRWStre
avifBoxMarker meta;
AVIF_CHECKRES(avifRWStreamWriteFullBox(s, "meta", AVIF_BOX_SIZE_TBD, 0, 0, &meta));

AVIF_CHECKRES(avifEncoderWriteHandlerBox(encoder, s, "pict"));
AVIF_CHECKRES(avifEncoderWriteHandlerBox(s, "pict"));

avifBoxMarker iloc;
AVIF_CHECKRES(avifRWStreamWriteFullBox(s, "iloc", AVIF_BOX_SIZE_TBD, 0, 0, &iloc));
Expand Down Expand Up @@ -3101,7 +3101,7 @@ avifResult avifEncoderFinish(avifEncoder * encoder, avifRWData * output)
// -----------------------------------------------------------------------
// Write hdlr

AVIF_CHECKRES(avifEncoderWriteHandlerBox(encoder, &s, "pict"));
AVIF_CHECKRES(avifEncoderWriteHandlerBox(&s, "pict"));

// -----------------------------------------------------------------------
// Write pitm
Expand Down Expand Up @@ -3447,7 +3447,7 @@ avifResult avifEncoderFinish(avifEncoder * encoder, avifRWData * output)
AVIF_CHECKRES(avifRWStreamWriteU16(&s, 0)); // unsigned int(16) pre_defined = 0;
avifRWStreamFinishBox(&s, mdhd);

AVIF_CHECKRES(avifEncoderWriteHandlerBox(encoder, &s, (item->itemCategory == AVIF_ITEM_ALPHA) ? "auxv" : "pict"));
AVIF_CHECKRES(avifEncoderWriteHandlerBox(&s, (item->itemCategory == AVIF_ITEM_ALPHA) ? "auxv" : "pict"));

avifBoxMarker minf;
AVIF_CHECKRES(avifRWStreamWriteBox(&s, "minf", AVIF_BOX_SIZE_TBD, &minf));
Expand Down

0 comments on commit 134cd72

Please sign in to comment.