aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2020-11-06 15:10:17 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2020-11-10 16:37:37 +0100
commit1c57b8ae3bf7d5e07a4951f80f9d5d3c50c4a74b (patch)
treec6cb2dd72e5655271bd35fe408d9465649191f99 /libavformat/avidec.c
parentee4a04654014e24f47f5a31265fb3bde6fad8ce6 (diff)
downloadffmpeg-1c57b8ae3bf7d5e07a4951f80f9d5d3c50c4a74b.tar.gz
libavformat/avidec: Extract more metadata from the header
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 578cf68ce1..7e527e15ee 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -110,6 +110,15 @@ static const char avi_headers[][8] = {
static const AVMetadataConv avi_metadata_conv[] = {
{ "strn", "title" },
+ { "isbj", "subject" },
+ { "inam", "title" },
+ { "iart", "artist" },
+ { "icop", "copyright" },
+ { "icmt", "comment" },
+ { "ignr", "genre" },
+ { "iprd", "product" },
+ { "isft", "software" },
+
{ 0 },
};
@@ -979,6 +988,14 @@ static int avi_read_header(AVFormatContext *s)
avio_skip(pb, size);
break;
case MKTAG('s', 't', 'r', 'n'):
+ case MKTAG('i', 's', 'b', 'j'):
+ case MKTAG('i', 'n', 'a', 'm'):
+ case MKTAG('i', 'a', 'r', 't'):
+ case MKTAG('i', 'c', 'o', 'p'):
+ case MKTAG('i', 'c', 'm', 't'):
+ case MKTAG('i', 'g', 'n', 'r'):
+ case MKTAG('i', 'p', 'o', 'd'):
+ case MKTAG('i', 's', 'o', 'f'):
if (s->nb_streams) {
ret = avi_read_tag(s, s->streams[s->nb_streams - 1], tag, size);
if (ret < 0)