]> git.sesse.net Git - ffmpeg/commit
avformat/mov: Read the QT Metadata Keys only once
authorThierry Foucu <tfoucu@gmail.com>
Mon, 11 May 2020 16:35:00 +0000 (09:35 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 May 2020 20:03:36 +0000 (22:03 +0200)
commit1187cbf0ffd7a74f9055def89ff88d5e36a9dbcd
treedd2f7891cd493ecf0e37a1f6ba2f94ca62a55674
parenta7e1af3cb10b7c914622deff3435bc200000eb65
avformat/mov: Read the QT Metadata Keys only once

If you have a file with multiple Metadata Keys, the second time you parse
the keys, you will re-alloc c->meta_keys without freeing the old one.
This change will avoid parsing all the consecutive Metadata keys.

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c