diff options
author | Mark Harris <mark.hsj@gmail.com> | 2014-01-08 06:33:03 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2014-01-08 06:33:03 +0400 |
commit | fe69528133bf4daebbae9260d0934fdc4963a942 (patch) | |
tree | 537582dd5d052ff0dceef27047fdf4493c304804 /src/opus_decoder.c | |
parent | e7750904270bbcad218f05bd7ca4313c6f080fbb (diff) |
Fixes the decode_fec case for b76888d
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r-- | src/opus_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 3d97dd1c..09ffdbeb 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -730,7 +730,7 @@ int opus_decode_float(OpusDecoder *st, const unsigned char *data, 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 @@ int opus_decode(OpusDecoder *st, const unsigned char *data, 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) |