changeset 4392:e0c94f1b8f55 libavcodec

maybe fix segfault with missing extradata (unchecked)
author michael
date Wed, 24 Jan 2007 00:54:36 +0000
parents 20944c70a3c0
children 5187883df562
files svq3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Tue Jan 23 19:32:26 2007 +0000
+++ b/svq3.c	Wed Jan 24 00:54:36 2007 +0000
@@ -826,7 +826,7 @@
     }
 
     /* if a match was found, parse the extra data */
-    if (!memcmp (extradata, "SEQH", 4)) {
+    if (extradata && !memcmp (extradata, "SEQH", 4)) {
 
       GetBitContext gb;