diff mbox series

[FFmpeg-devel] avcodec/speexdec: Remove dead code

Message ID AM7PR03MB66609A6F93192EE739DE2AB98F909@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit ddd701fbbf71a85711bbb1fc52f5de86cdca1261
Headers show
Series [FFmpeg-devel] avcodec/speexdec: Remove dead code | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 7, 2021, 7:57 a.m. UTC
Fixes Coverity issue #1492840.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/speexdec.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c
index 4c50f54f27..90e95f0785 100644
--- a/libavcodec/speexdec.c
+++ b/libavcodec/speexdec.c
@@ -1221,7 +1221,7 @@  static int sb_decode(AVCodecContext *avctx, void *ptr_st,
     float low_pi_gain[NB_NB_SUBFRAMES];
     float low_exc_rms[NB_NB_SUBFRAMES];
     float interp_qlsp[NB_ORDER];
-    int ret, wideband, dtx = 0;
+    int ret, wideband;
     float *low_innov_alias;
     float qlsp[NB_ORDER];
     float ak[NB_ORDER];
@@ -1254,11 +1254,6 @@  static int sb_decode(AVCodecContext *avctx, void *ptr_st,
 
     /* If null mode (no transmission), just set a couple things to zero */
     if (st->submodes[st->submodeID] == NULL) {
-        if (dtx) {
-            //sb_decode_lost(st, out, 1);
-            return 0;
-        }
-
         for (int i = 0; i < st->frame_size; i++)
             out[st->frame_size + i] = 1e-15f;