summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-02-21 12:02:07 +0100
committerClément Bœsch <u@pkh.me>2016-02-26 21:53:34 +0100
commit6433618dc01cd0f38c590d741891d5ce508cfec7 (patch)
treebb2c8499ee72b872e48092c71dfd13bcef16dccf /ffmpeg.c
parent30e76853608f150450fac2497179159a6d556e12 (diff)
ffmpeg: set sub_text_format to ass (without timing) by default
Fixes Ticket #4783
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9bbe5c3759..d1485888e8 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2547,6 +2547,8 @@ static int init_input_stream(int ist_index, char *error, int error_len)
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);
+
if (!av_dict_get(ist->decoder_opts, "threads", NULL, 0))
av_dict_set(&ist->decoder_opts, "threads", "auto", 0);
if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) {