1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

mp3enc: fix signed C99 overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-14 05:49:10 +02:00
parent 2217a2249d
commit d31098113f

View File

@ -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;