ref: 0667f41555d0762721bdf78e96555dc69c9f0055
parent: 7a986008f9efd929ed1e251794c5928cb5f04e27
author: Mark Harris <mark.hsj@gmail.com>
date: Wed Sep 30 21:48:19 EDT 2015
opusenc: Change fatal WAV/AIFF warnings to errors
--- a/src/audio-in.c
+++ b/src/audio-in.c
@@ -340,7 +340,7 @@
if(!find_aiff_chunk(in, "COMM", &len))
{
- fprintf(stderr, _("Warning: No common chunk found in AIFF file\n"));
+ fprintf(stderr, _("ERROR: No common chunk found in AIFF file\n"));
return 0; /* EOF before COMM chunk */
}
@@ -365,7 +365,7 @@
{
if(len < 22)
{
- fprintf(stderr, _("Warning: AIFF-C header truncated.\n"));
+ fprintf(stderr, _("ERROR: AIFF-C header truncated.\n"));
return 0;
}
@@ -395,19 +395,19 @@
if(!find_aiff_chunk(in, "SSND", &len))
{
- fprintf(stderr, _("Warning: No SSND chunk found in AIFF file\n"));
+ fprintf(stderr, _("ERROR: No SSND chunk found in AIFF file\n"));
return 0; /* No SSND chunk -> no actual audio */
}
if(len < 8)
{
- fprintf(stderr, _("Warning: Corrupted SSND chunk in AIFF header\n"));
+ fprintf(stderr, _("ERROR: Corrupted SSND chunk in AIFF header\n"));
return 0;
}
if(fread(buf2,1,8, in) < 8)
{
- fprintf(stderr, _("Warning: Unexpected EOF reading AIFF header\n"));
+ fprintf(stderr, _("ERROR: Unexpected EOF reading AIFF header\n"));
return 0;
}
@@ -503,7 +503,7 @@
if(len < 16)
{
- fprintf(stderr, _("Warning: Unrecognised format chunk in WAV header\n"));
+ fprintf(stderr, _("ERROR: Unrecognised format chunk in WAV header\n"));
return 0; /* Weird format chunk */
}