ref: 7c328c2d7a9bb28b837d935658ec05bfd7746aa6
parent: dd2973dd6c440c3e48d18e9b010bbb2e916f5286
author: Jean-Marc Valin <[email protected]>
date: Sat Mar 12 15:36:26 EST 2011
celtdec update for change in celt_decode() return value
--- a/tools/celtdec.c
+++ b/tools/celtdec.c
@@ -573,9 +573,9 @@
/*for (i=0;i<frame_size*channels;i++)
printf ("%d\n", (int)output[i]);*/
- if (ret!=0)
+ if (ret<0)
{
- fprintf (stderr, "Decoding error: corrupted stream?\n");
+ fprintf (stderr, "Decoding error: %s\n", celt_strerror(ret));
break;
}