Browse Source

avutil/avstring: fix () position

Fixes CID1135751

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
9ab5cf5417
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavutil/avstring.c

+ 2
- 2
libavutil/avstring.c View File

@@ -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 &&
!(flags & AV_UTF8_FLAG_ACCEPT_SURROGATES))
ret = AVERROR(EILSEQ);
if (code == 0xFFFE || code == 0xFFFF &&
(!flags & AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS))
if ((code == 0xFFFE || code == 0xFFFF) &&
!(flags & AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS))
ret = AVERROR(EILSEQ);

end:


Loading…
Cancel
Save