[FFmpeg-devel] [PATCH 2/2] avformat/mov: parse tmpo atom

Moritz Barsnick barsnick at gmx.net
Wed Sep 19 16:45:28 EEST 2018


It is assigned to the "tmpo" metadatakey, which may be incorrect, but
corresponds to the key used by avformat/movenc.

Signed-off-by: Moritz Barsnick <barsnick at gmx.net>
---
 libavformat/mov.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 03c39d0e5d..095d5f8f3c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -362,6 +362,8 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     case MKTAG( 's','o','s','n'): key = "sort_show";    break;
     case MKTAG( 's','t','i','k'): key = "media_type";
         parse = mov_metadata_int8_no_padding; break;
+    case MKTAG( 't','m','p','o'): key = "tmpo";
+        parse = mov_metadata_int16; break;
     case MKTAG( 't','r','k','n'): key = "track";
         parse = mov_metadata_track_or_disc_number; break;
     case MKTAG( 't','v','e','n'): key = "episode_id"; break;
-- 
2.14.4



More information about the ffmpeg-devel mailing list