This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avcodec/mpegaudioenc_template: fix invalid shift of sample
Fixes: Ticket8010 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Michael Niedermayer
5 years ago
parent
e13eee37ee
commit
a2c97a8342
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/mpegaudioenc_template.c
+ 1
- 1
libavcodec/mpegaudioenc_template.c
View File
@@ -701,7 +701,7 @@ static void encode_frame(MpegAudioContext *s,
/* normalize to P bits */
if (shift < 0)
q1 = sample <<
(
-shift);
q1 = sample
* (1
<< -shift);
else
q1 = sample >> shift;
q1 = (q1 * mult) >> P;
Write
Preview
Loading…
Cancel
Save