lavf/matroskaenc: Check for valid metadata before creating tags
authorJames Almer <jamrial@gmail.com>
Wed, 17 Jul 2013 06:10:16 +0000 (03:10 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 9 Aug 2013 19:28:31 +0000 (16:28 -0300)
commitbaf92305a6f5ce088728d41e7ac4ed7aa141c78f
treed0464d3aa44ce2bd5c041d903134428f97d932f0
parentd6d168e87b6322b30d0d2297da8b99b10e1a46e6
lavf/matroskaenc: Check for valid metadata before creating tags

Tags must have at least one SimpleTag element to be spec conformant.
Updated lavf-mkv and seek-lavf-mkv FATE references as the tests were affected by
this.

Fixes ticket #2785

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 088ed5314694031e07e02e9d364c9d486a60e704)
libavformat/matroskaenc.c
tests/ref/lavf/mkv
tests/ref/seek/lavf-mkv