Browse Source

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>
tags/n2.3
Dale Curtis Michael Niedermayer 11 years ago
parent
commit
ef0c466a0f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/utils.c

+ 1
- 1
libavcodec/utils.c View File

@@ -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