diff mbox

[FFmpeg-devel,2/2] libavformat/mov: recognize udta name tag as the stream title

Message ID 20180521141853.6124-2-nik@nikjohnson.net
State Superseded
Headers show

Commit Message

Nik Johnson May 21, 2018, 2:18 p.m. UTC
Some muxers write the stream title in a udta atom with the tag 'name'.
Recognize 'name' tags as the stream title instead of an unknown tag.

Signed-off-by: Nik Johnson <nik@nikjohnson.net>
---
 libavformat/mov.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 5332d48eb1..d0856665b6 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -340,6 +340,7 @@  static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         return mov_metadata_loci(c, pb, atom.size);
     case MKTAG( 'm','a','n','u'): key = "make"; break;
     case MKTAG( 'm','o','d','l'): key = "model"; break;
+    case MKTAG( 'n','a','m','e'): key = "title"; break;
     case MKTAG( 'p','c','s','t'): key = "podcast";
         parse = mov_metadata_int8_no_padding; break;
     case MKTAG( 'p','g','a','p'): key = "gapless_playback";