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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Dale Curtis 2014-05-20 12:03:57 -07:00 committed by Michael Niedermayer
parent e61055fd8b
commit ef0c466a0f
1 changed files with 1 additions and 1 deletions

View File

@ -2553,7 +2553,7 @@ end:
iconv_close(cd);
return ret;
#else
av_assert0(!"requesting subtitles recoding without iconv");
return AVERROR(EINVAL);
#endif
}