Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-01-04 23:16:31 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-04 20:12:12 +0300
commita4886e88db652d0e6971823487ad24a30470d828 (patch)
treeda574ae049f639d6287f8241a2c20334976b84c9
parent929731fc77adcfd4602a20593504a701073cf436 (diff)
matroskadec_haali: export mkv codec id as metadata
-rw-r--r--libavformat/matroskadec_haali.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskadec_haali.c b/libavformat/matroskadec_haali.c
index 5b97fdf866..821a53fbff 100644
--- a/libavformat/matroskadec_haali.c
+++ b/libavformat/matroskadec_haali.c
@@ -1123,6 +1123,8 @@ static int mkv_read_header(AVFormatContext *s)
av_dict_set(&st->metadata, "language", info->Language, 0);
av_dict_set(&st->metadata, "title", info->Name, 0);
+ av_dict_set(&st->metadata, "mkv-codec-id", info->CodecID, 0);
+
if (info->Default)
st->disposition |= AV_DISPOSITION_DEFAULT;
if (info->Forced)