提交 d3109811 编写于 作者: M Michael Niedermayer

mp3enc: fix signed C99 overflow

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册