[FFmpeg-cvslog] r14305 - trunk/libavcodec/qdm2.c
banan
subversion
Sat Jul 19 17:48:53 CEST 2008
Author: banan
Date: Sat Jul 19 17:48:53 2008
New Revision: 14305
Log:
Fix for possible null pointer dereferencing, closes Coverity report 68 run 2.
Modified:
trunk/libavcodec/qdm2.c
Modified: trunk/libavcodec/qdm2.c
==============================================================================
--- trunk/libavcodec/qdm2.c (original)
+++ trunk/libavcodec/qdm2.c Sat Jul 19 17:48:53 2008
@@ -1452,6 +1452,9 @@ static void qdm2_decode_fft_packets (QDM
max = min;
/* check for errors (?) */
+ if (!packet)
+ return;
+
if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16]))
return;
More information about the ffmpeg-cvslog
mailing list