Browse Source

Fix for possible null pointer dereferencing, closes Coverity report 68 run 2.

Originally committed as revision 14305 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Benjamin Larsson 17 years ago
parent
commit
f7dbf86d93
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/qdm2.c

+ 3
- 0
libavcodec/qdm2.c View File

@@ -1452,6 +1452,9 @@ static void qdm2_decode_fft_packets (QDM2Context *q)
max = min; max = min;


/* check for errors (?) */ /* check for errors (?) */
if (!packet)
return;

if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16])) if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16]))
return; return;




Loading…
Cancel
Save