summaryrefslogtreecommitdiffstats
path: root/common/recorder.h
diff options
context:
space:
mode:
authorTheAMM <the.actual.amm@gmail.com>2021-05-29 01:28:15 +0300
committerJan Ekström <jeebjp@gmail.com>2021-07-08 12:44:06 +0300
commit4d3df1c842532e3a48578ab6daef39076289c8ef (patch)
treef38668f28dca977818525416494c162f42f65b51 /common/recorder.h
parentf9527497c68c86b247ade965dafe362f0f43be09 (diff)
downloadmpv-4d3df1c842532e3a48578ab6daef39076289c8ef.tar.bz2
mpv-4d3df1c842532e3a48578ab6daef39076289c8ef.tar.xz
recorder: add support for attachments (fonts)
Though, only when the output format is matroska, to avoid muxing errors. This is quite useful when the input has ASS subtitles, as they tend to rely on embedded fonts.
Diffstat (limited to 'common/recorder.h')
-rw-r--r--common/recorder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/recorder.h b/common/recorder.h
index c0b1e36495..e86d978067 100644
--- a/common/recorder.h
+++ b/common/recorder.h
@@ -5,12 +5,15 @@ struct mp_recorder;
struct mpv_global;
struct demux_packet;
struct sh_stream;
+struct demux_attachment;
struct mp_recorder_sink;
struct mp_recorder *mp_recorder_create(struct mpv_global *global,
const char *target_file,
struct sh_stream **streams,
- int num_streams);
+ int num_streams,
+ struct demux_attachment **demux_attachments,
+ int num_attachments);
void mp_recorder_destroy(struct mp_recorder *r);
void mp_recorder_mark_discontinuity(struct mp_recorder *r);