mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avfilter/vf_subtitles, fftools/ffmpeg: Don't set sub_text_format
Unnecessary since 1f63665ca5
, because
the value the option is set to coincides with the default value.
Found-by: Soft Works <softworkz@hotmail.com>
Reviewed-by: Soft Works <softworkz@hotmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3df34e7bf7
commit
3b6c25c925
@ -2991,8 +2991,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
av_log(NULL, AV_LOG_WARNING, "Warning using DVB subtitles for filtering and output at the same time is not fully supported, also see -compute_edt [0|1]\n");
|
av_log(NULL, AV_LOG_WARNING, "Warning using DVB subtitles for filtering and output at the same time is not fully supported, also see -compute_edt [0|1]\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
av_dict_set(&ist->decoder_opts, "sub_text_format", "ass", AV_DICT_DONT_OVERWRITE);
|
|
||||||
|
|
||||||
/* Useful for subtitles retiming by lavf (FIXME), skipping samples in
|
/* Useful for subtitles retiming by lavf (FIXME), skipping samples in
|
||||||
* audio, and video decoders such as cuvid or mediacodec */
|
* audio, and video decoders such as cuvid or mediacodec */
|
||||||
ist->dec_ctx->pkt_timebase = ist->st->time_base;
|
ist->dec_ctx->pkt_timebase = ist->st->time_base;
|
||||||
|
@ -395,7 +395,6 @@ static av_cold int init_subtitles(AVFilterContext *ctx)
|
|||||||
}
|
}
|
||||||
if (ass->charenc)
|
if (ass->charenc)
|
||||||
av_dict_set(&codec_opts, "sub_charenc", ass->charenc, 0);
|
av_dict_set(&codec_opts, "sub_charenc", ass->charenc, 0);
|
||||||
av_dict_set(&codec_opts, "sub_text_format", "ass", 0);
|
|
||||||
|
|
||||||
dec_ctx = avcodec_alloc_context3(dec);
|
dec_ctx = avcodec_alloc_context3(dec);
|
||||||
if (!dec_ctx) {
|
if (!dec_ctx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user