[FFmpeg-cvslog] avcodec/wavarc: remove invalid shifts

Paul B Mahol git at videolan.org
Mon Feb 6 21:30:23 EET 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb  6 20:28:01 2023 +0100| [3b3a321fed016665b602e50de993f96fa59ece30] | committer: Paul B Mahol

avcodec/wavarc: remove invalid shifts

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b3a321fed016665b602e50de993f96fa59ece30
---

 libavcodec/wavarc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/wavarc.c b/libavcodec/wavarc.c
index 20371b53de..956c52bfe9 100644
--- a/libavcodec/wavarc.c
+++ b/libavcodec/wavarc.c
@@ -226,7 +226,7 @@ static int decode_1dif(AVCodecContext *avctx,
 
     if (avctx->ch_layout.nb_channels == 1) {
         for (int n = 0; n < 4; n++)
-            s->samples[0][n] = s->samples[0][s->nb_samples + n] >> s->shift;
+            s->samples[0][n] = s->samples[0][s->nb_samples + n];
     }
 
     return 0;
@@ -334,7 +334,7 @@ static int decode_2slp(AVCodecContext *avctx,
 
     if (avctx->ch_layout.nb_channels == 1) {
         for (int n = 0; n < 70; n++)
-            s->samples[0][n] = s->samples[0][s->nb_samples + n] >> s->shift;
+            s->samples[0][n] = s->samples[0][s->nb_samples + n];
     }
 
     return 0;



More information about the ffmpeg-cvslog mailing list