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

Submitted by Moritz Barsnick on Sept. 19, 2018, 1:45 p.m.

Details

Message ID a554fd8d26a62b1a74856e9ea20ce0d67384c94f.1537362628.git.barsnick@gmx.net
State New
Headers show

Commit Message

Moritz Barsnick Sept. 19, 2018, 1:45 p.m.
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@gmx.net>
---
 libavformat/mov.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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;