diff mbox

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

Message ID 20180529194502.39608-2-nik@nikjohnson.net
State New
Headers show

Commit Message

Nik Johnson May 29, 2018, 7:45 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 b434802207..c2675d2644 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"; raw = 1; 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";