sub/lavc_conv: only set subtitle text format when required
Since libavcodec major version 59, the requested "ass" format became the default as the old timing-included format was disabled starting with that version. Additionally, this option by itself has since been deprecated as it no longer serves any purpose. References: FFmpeg/FFmpeg@1f63665ca5 FFmpeg/FFmpeg@176b8d785b Fixes #9413
This commit is contained in:
1 parent
036bda9166
commit
77142ed9b8
1 file changed
+3
@@ -83,7 +83,10 @@ struct lavc_conv *lavc_conv_create(struct mp_log *log, const char *codec_name,
|
||||
goto error;
|
||||
if (mp_lavc_set_extradata(avctx, extradata, extradata_len) < 0)
|
||||
goto error;
|
||||
|
||||
#if LIBAVCODEC_VERSION_MAJOR < 59
|
||||
av_dict_set(&opts, "sub_text_format", "ass", 0);
|
||||
#endif
|
||||
av_dict_set(&opts, "flags2", "+ass_ro_flush_noop", 0);
|
||||
if (strcmp(codec_name, "eia_608") == 0)
|
||||
av_dict_set(&opts, "real_time", "1", 0);
|
||||
|
||||
Reference in new issue
Block a user