[vlc-commits] smf: ignore invalid key sig (fixes #21857)

Rémi Denis-Courmont git at videolan.org
Thu Jan 31 20:00:11 CET 2019


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 31 20:54:31 2019 +0200| [db3e320b1a61b27a524dce7d28f4cb7983f4987f] | committer: Rémi Denis-Courmont

smf: ignore invalid key sig (fixes #21857)

(cherry picked from commit 7c50a3589644a64c4fa86b15f663d518ebd9b51d)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=db3e320b1a61b27a524dce7d28f4cb7983f4987f
---

 modules/demux/smf.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index 37b16d6ac5..ab03097a80 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -234,10 +234,8 @@ int HandleMeta (demux_t *p_demux, mtrk_t *tr)
             break;
 
         case 0x59: /* Key signature */
-            if (length == 2)
-                ;
-            else
-                ret = -1;
+            if (length != 2)
+                msg_Warn(p_demux, "invalid key signature");
             break;
 
         case 0x7f: /* Proprietary event */



More information about the vlc-commits mailing list