diff qdm2.c @ 7323:5d6c51a125d0 libavcodec

Fix for possible null pointer dereferencing, closes Coverity report 68 run 2.
author banan
date Sat, 19 Jul 2008 15:48:53 +0000
parents 7950572e58eb
children fe8a7f5905e4
line wrap: on
line diff
--- a/qdm2.c	Sat Jul 19 15:43:34 2008 +0000
+++ b/qdm2.c	Sat Jul 19 15:48:53 2008 +0000
@@ -1452,6 +1452,9 @@
         max = min;
 
         /* check for errors (?) */
+        if (!packet)
+            return;
+
         if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16]))
             return;