From 01e8a9c9e3a28f2beb41a5ee6d902797abdb74f0 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Sun, 30 Mar 2014 19:05:59 +0200 Subject: encode_lavc: copy metadata to output file Closes #684 Signed-off-by: wm4 Includes some minor cosmetic changes additional to the original PR. --- player/loadfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player') diff --git a/player/loadfile.c b/player/loadfile.c index e90c3b6200..95cc871e42 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1272,6 +1272,10 @@ goto_reopen_demuxer: ; encode_lavc_expect_stream(mpctx->encode_lavc_ctx, AVMEDIA_TYPE_VIDEO); if (mpctx->encode_lavc_ctx && mpctx->current_track[0][STREAM_AUDIO]) encode_lavc_expect_stream(mpctx->encode_lavc_ctx, AVMEDIA_TYPE_AUDIO); + if (mpctx->encode_lavc_ctx) { + encode_lavc_set_metadata(mpctx->encode_lavc_ctx, + mpctx->demuxer->metadata); + } #endif reinit_video_chain(mpctx); -- cgit v1.2.3