[opus] [PATCH] opusenc: ignore SSND chunk length when input is stdin

Roman Beranek roman.beranek at prusa3d.cz
Thu Jul 15 04:40:28 UTC 2021


---
 src/audio-in.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio-in.c b/src/audio-in.c
index 5bb4ac4..56bc0c5 100644
--- a/src/audio-in.c
+++ b/src/audio-in.c
@@ -402,7 +402,7 @@ int aiff_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen)
         return 0; /* No SSND chunk -> no actual audio */
     }
 
-    if (len < 8)
+    if (len < 8 && in != stdin)
     {
         fprintf(stderr, _("ERROR: Corrupted SSND chunk in AIFF header\n"));
         return 0;
-- 
2.32.0



More information about the opus mailing list