summaryrefslogtreecommitdiffstats
path: root/common/encode.h
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-03-30 19:05:59 +0200
committerwm4 <wm4@nowhere>2014-03-30 20:04:20 +0200
commit01e8a9c9e3a28f2beb41a5ee6d902797abdb74f0 (patch)
tree27261c599952e26dfc7af83e4b83595495c8c21f /common/encode.h
parent239dc2851a9001ff3c69c613d621125c9a95e8ae (diff)
downloadmpv-01e8a9c9e3a28f2beb41a5ee6d902797abdb74f0.tar.bz2
mpv-01e8a9c9e3a28f2beb41a5ee6d902797abdb74f0.tar.xz
encode_lavc: copy metadata to output file
Closes #684 Signed-off-by: wm4 <wm4@nowhere> Includes some minor cosmetic changes additional to the original PR.
Diffstat (limited to 'common/encode.h')
-rw-r--r--common/encode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/encode.h b/common/encode.h
index 7d6cacd86a..530805c76f 100644
--- a/common/encode.h
+++ b/common/encode.h
@@ -3,6 +3,8 @@
#include <stdbool.h>
+#include "demux/demux.h"
+
struct mpv_global;
struct mp_log;
struct encode_lavc_context;
@@ -17,6 +19,8 @@ void encode_lavc_discontinuity(struct encode_lavc_context *ctx);
bool encode_lavc_showhelp(struct mp_log *log, struct encode_output_conf *options);
int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position);
void encode_lavc_expect_stream(struct encode_lavc_context *ctx, int mt);
+void encode_lavc_set_metadata(struct encode_lavc_context *ctx,
+ struct mp_tags *metadata);
void encode_lavc_set_video_fps(struct encode_lavc_context *ctx, float fps);
void encode_lavc_set_audio_pts(struct encode_lavc_context *ctx, double pts);
bool encode_lavc_didfail(struct encode_lavc_context *ctx); // check if encoding failed