[vlc-commits] mux/ts: add missing error check

Rémi Denis-Courmont git at videolan.org
Fri Dec 4 15:47:30 UTC 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 30 23:52:13 2020 +0200| [b66b683f07794af1cb95ea1fa68d353ee857f1b4] | committer: Rémi Denis-Courmont

mux/ts: add missing error check

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

 modules/mux/mpeg/ts.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 569735541b..c5df6a1d3b 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -493,6 +493,9 @@ static csa_t *csaSetup( vlc_object_t *p_this )
 
     csa_t *csa = csa_New();
 
+    if( unlikely(csa == NULL) )
+        return NULL;
+
     if( csa_SetCW( p_this, csa, csack, true ) )
     {
         free(csack);



More information about the vlc-commits mailing list