ref: 18996cf9c2288c68309f6edec7fb8367f3742c88
parent: 1d128b4d5c6faad1346e6908c0cfb9c7e2cd7243
author: Gregory Maxwell <[email protected]>
date: Sat Jun 2 08:40:54 EDT 2012
Stronger detection of output opening errors.
--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -355,6 +355,11 @@
write_wav_header(fout, rate, *channels);
}
}
+ if(!fout)
+ {
+ perror("Cannot open output");
+ exit(1);
+ }
return fout;
}