shithub: opus

Download patch

ref: fe69528133bf4daebbae9260d0934fdc4963a942
parent: e7750904270bbcad218f05bd7ca4313c6f080fbb
author: Mark Harris <[email protected]>
date: Tue Jan 7 16:33:03 EST 2014

Fixes the decode_fec case for b76888d

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -730,7 +730,7 @@
       RESTORE_STACK;
       return OPUS_BAD_ARG;
    }
-   if (data != NULL && len > 0)
+   if (data != NULL && len > 0 && !decode_fec)
    {
       nb_samples = opus_decoder_get_nb_samples(st, data, len);
       if (nb_samples>0)
@@ -767,7 +767,7 @@
       return OPUS_BAD_ARG;
    }
 
-   if (data != NULL && len > 0)
+   if (data != NULL && len > 0 && !decode_fec)
    {
       nb_samples = opus_decoder_get_nb_samples(st, data, len);
       if (nb_samples>0)