[FFmpeg-cvslog] mp3enc: fix signed C99 overflow
Michael Niedermayer
git at videolan.org
Sun Oct 14 05:53:10 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 14 05:49:10 2012 +0200| [d31098113fab78531b43ca1d019335e835149cf1] | committer: Michael Niedermayer
mp3enc: fix signed C99 overflow
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d31098113fab78531b43ca1d019335e835149cf1
---
libavformat/mp3enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 3c7c4aa..425488f 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -157,7 +157,7 @@ static int mp3_write_xing(AVFormatContext *s)
}
/* dummy MPEG audio header */
- header = 0xff << 24; // sync
+ header = 0xffU << 24; // sync
header |= (0x7 << 5 | ver << 3 | 0x1 << 1 | 0x1) << 16; // sync/audio-version/layer 3/no crc*/
header |= (srate_idx << 2) << 8;
header |= channels << 6;
More information about the ffmpeg-cvslog
mailing list