avformat/movenc: only compile avif_write_trailer() when the avif muxer is enabled

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-03-20 23:50:55 -03:00
parent 5ff0eb34d2
commit e04c638f5f
1 changed files with 2 additions and 0 deletions

View File

@ -8038,6 +8038,7 @@ static int mov_check_bitstream(AVFormatContext *s, AVStream *st,
return ret;
}
#if CONFIG_AVIF_MUXER
static int avif_write_trailer(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
@ -8093,6 +8094,7 @@ static int avif_write_trailer(AVFormatContext *s)
return 0;
}
#endif
#if CONFIG_TGP_MUXER || CONFIG_TG2_MUXER
static const AVCodecTag codec_3gp_tags[] = {