mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/utils: Fix undefined behavior in avpriv_toupper4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
30aeab29e4
commit
a071c0b515
|
@ -3454,7 +3454,7 @@ unsigned int avpriv_toupper4(unsigned int x)
|
||||||
return av_toupper(x & 0xFF) +
|
return av_toupper(x & 0xFF) +
|
||||||
(av_toupper((x >> 8) & 0xFF) << 8) +
|
(av_toupper((x >> 8) & 0xFF) << 8) +
|
||||||
(av_toupper((x >> 16) & 0xFF) << 16) +
|
(av_toupper((x >> 16) & 0xFF) << 16) +
|
||||||
(av_toupper((x >> 24) & 0xFF) << 24);
|
((unsigned)av_toupper((x >> 24) & 0xFF) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
|
int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
|
||||||
|
|
Loading…
Reference in New Issue