diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-14 07:49:10 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-14 07:52:50 +0400 |
commit | d31098113fab78531b43ca1d019335e835149cf1 (patch) | |
tree | 63673a2dd2a9794e8279526b9f79503e5a5fc486 /libavformat | |
parent | 2217a2249dd78c3719f865569b661b8adcda4962 (diff) |
mp3enc: fix signed C99 overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mp3enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 3c7c4aad44..425488ff03 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; |