Commit ef0c466a authored by Dale Curtis's avatar Dale Curtis Committed by Michael Niedermayer

Replace assert with AVERROR when recode_subtitle called w/o ICONV.

recode_subtitle() is called implicitly by avformat_find_stream_info().
As such, clients which disable ICONV always crash if a file contains
subtitles; even if they don't care about them.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e61055fd
...@@ -2553,7 +2553,7 @@ end: ...@@ -2553,7 +2553,7 @@ end:
iconv_close(cd); iconv_close(cd);
return ret; return ret;
#else #else
av_assert0(!"requesting subtitles recoding without iconv"); return AVERROR(EINVAL);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment