diff options
author | Clément Bœsch <u@pkh.me> | 2016-02-21 12:02:07 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-02-26 21:53:34 +0100 |
commit | 6433618dc01cd0f38c590d741891d5ce508cfec7 (patch) | |
tree | bb2c8499ee72b872e48092c71dfd13bcef16dccf /ffmpeg.c | |
parent | 30e76853608f150450fac2497179159a6d556e12 (diff) | |
download | ffmpeg-6433618dc01cd0f38c590d741891d5ce508cfec7.tar.gz |
ffmpeg: set sub_text_format to ass (without timing) by default
Fixes Ticket #4783
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |