[FFmpeg-devel] [PATCH] libavformat/avidec: Extract more metadata from the header
Thierry Foucu
tfoucu at gmail.com
Sat Nov 7 01:10:17 EET 2020
---
libavformat/avidec.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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)
--
2.29.2.222.g5d2a92d10f8-goog
More information about the ffmpeg-devel
mailing list