diff options
author | Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com> | 2024-01-14 23:38:20 +0300 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-21 17:55:11 +0000 |
commit | 02a20b4ebe29cb7d488ceaf39fb5a50c2443295a (patch) | |
tree | 5ea4f0c2a4815edbef0e1851650b7293b7e272a0 /sub/sd_lavc.c | |
parent | 1ea9e51f782129a82fcf0defdda66c3bcaa6c748 (diff) | |
download | mpv-02a20b4ebe29cb7d488ceaf39fb5a50c2443295a.tar.bz2 mpv-02a20b4ebe29cb7d488ceaf39fb5a50c2443295a.tar.xz |
sub: add `--sub-lavc-o` option
We have `--vd-lavc-o` and `--ad-lavc-o`, but no equivalent option for
subtitles.
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Diffstat (limited to 'sub/sd_lavc.c')
-rw-r--r-- | sub/sd_lavc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 8e3c3ed665..b6e0ffea3e 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -96,6 +96,9 @@ static int init(struct sd *sd) ctx = avcodec_alloc_context3(sub_codec); if (!ctx) goto error; + + mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts); + priv->avpkt = av_packet_alloc(); if (!priv->avpkt) goto error; |