[FFmpeg-cvslog] avcodec/dcadec: use brackets to ensure that no slow division is used

Michael Niedermayer git at videolan.org
Fri Feb 28 21:38:00 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 28 21:31:07 2014 +0100| [ffb7d7195be6a4f25e81600a2a6a6dadd2a11e18] | committer: Michael Niedermayer

avcodec/dcadec: use brackets to ensure that no slow division is used

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/dcadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 756e53f..0c7b6e7 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1373,7 +1373,7 @@ static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
                         else if (s->predictor_history)
                             sum += adpcm_vb[s->prediction_vq[k][l]][n - 1] *
                                    s->subband_samples_hist[k][l][m - n + 4];
-                    subband_samples[k][l][m] += sum * 1.0f / 8192;
+                    subband_samples[k][l][m] += sum * (1.0f / 8192);
                 }
             }
         }



More information about the ffmpeg-cvslog mailing list