Skip to content

Commit 95aa9ea

Browse files
committed
codec_aom: compile decoder diag helper only in decode builds
1 parent 83fc735 commit 95aa9ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/codec_aom.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ static void aomCodecDestroyInternal(avifCodec * codec)
9090
avifFree(codec->internal);
9191
}
9292

93+
#if defined(AVIF_CODEC_AOM_DECODE)
94+
9395
// Writes a libaom error code and error detail into diagnostics.
9496
static void aomDiagPrintf(avifDiagnostics * diag, const char * func, const char * error, const char * detail)
9597
{
9698
avifDiagnosticsPrintf(diag, "%s failed: %s: %s", func, error, detail ? detail : "no error detail");
9799
}
98100

99-
#if defined(AVIF_CODEC_AOM_DECODE)
100-
101101
static avifBool aomCodecGetNextImage(struct avifCodec * codec,
102102
const avifDecodeSample * sample,
103103
avifBool alpha,

0 commit comments

Comments
 (0)