diff options
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r-- | libavcodec/qdm2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 87bcb47adc..e4a7878a8c 100644 --- 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; |