changeset 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 6c8c561becce
children 3f49e04bcbe1
files qdm2.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;