1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

View File

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