Commit d3109811 authored by Michael Niedermayer's avatar Michael Niedermayer

mp3enc: fix signed C99 overflow

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2217a224
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment