X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.c;h=d1485888e804db3521002e48281e30a3e2175013;hb=81f14884b59334b765eddb64b0dc8ca5dec7f9bd;hp=9bbe5c375918229242f53048e942154e88104d0d;hpb=f99195d56f4aab266926724ca1cfae822df4df16;p=ffmpeg diff --git a/ffmpeg.c b/ffmpeg.c index 9bbe5c37591..d1485888e80 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) {