mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
avutil/avstring: fix () position
Fixes CID1135751 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
81c1197494
commit
9ab5cf5417
@ -362,8 +362,8 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end,
|
|||||||
if (code >= 0xD800 && code <= 0xDFFF &&
|
if (code >= 0xD800 && code <= 0xDFFF &&
|
||||||
!(flags & AV_UTF8_FLAG_ACCEPT_SURROGATES))
|
!(flags & AV_UTF8_FLAG_ACCEPT_SURROGATES))
|
||||||
ret = AVERROR(EILSEQ);
|
ret = AVERROR(EILSEQ);
|
||||||
if (code == 0xFFFE || code == 0xFFFF &&
|
if ((code == 0xFFFE || code == 0xFFFF) &&
|
||||||
(!flags & AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS))
|
!(flags & AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS))
|
||||||
ret = AVERROR(EILSEQ);
|
ret = AVERROR(EILSEQ);
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
Loading…
Reference in New Issue
Block a user