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>
pull/68/merge
Dale Curtis 11 years ago committed by Michael Niedermayer
parent e61055fd8b
commit ef0c466a0f
  1. 2
      libavcodec/utils.c

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

Loading…
Cancel
Save