projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f59e60
)
Fix for possible null pointer dereferencing, closes Coverity report 68 run 2.
author
Benjamin Larsson
<banan@ludd.ltu.se>
Sat, 19 Jul 2008 15:48:53 +0000
(15:48 +0000)
committer
Benjamin Larsson
<banan@ludd.ltu.se>
Sat, 19 Jul 2008 15:48:53 +0000
(15:48 +0000)
Originally committed as revision 14305 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/qdm2.c
patch
|
blob
|
history
diff --git
a/libavcodec/qdm2.c
b/libavcodec/qdm2.c
index 87bcb47adc19a979fff861d82a1325d317c31329..e4a7878a8cddfa82b54700750adfedde59542654 100644
(file)
--- a/
libavcodec/qdm2.c
+++ b/
libavcodec/qdm2.c
@@
-1452,6
+1452,9
@@
static void qdm2_decode_fft_packets (QDM2Context *q)
max = min;
/* check for errors (?) */
+ if (!packet)
+ return;
+
if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16]))
return;