commit | 56d6036e5fc73417dd1e0b0077a2a8822d902b94 | [log] [tgz] |
---|---|---|
author | Kerry Su <me@sshockwave.net> | Sun Apr 16 14:25:24 2023 +0800 |
committer | Yannis Guyon <yguyon@google.com> | Mon Apr 17 11:35:09 2023 +0200 |
tree | 72c58ccc2360887342df1d12008d4bb02526c1a5 | |
parent | 9c3dadf4499d577a872452ac26c20f1a3cb9a46f [diff] |
Set `dstDepth` when input is `stdin`
diff --git a/apps/avifenc.c b/apps/avifenc.c index a4dd41f..3aa1c22 100644 --- a/apps/avifenc.c +++ b/apps/avifenc.c
@@ -387,6 +387,9 @@ fprintf(stderr, "ERROR: Cannot read y4m through standard input"); return AVIF_FALSE; } + if (dstDepth) { + *dstDepth = dstImage->depth; + } assert(dstImage->yuvFormat != AVIF_PIXEL_FORMAT_NONE); if (dstSourceIsRGB) { *dstSourceIsRGB = AVIF_FALSE;