comparison qdm2.c @ 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 7950572e58eb
children fe8a7f5905e4
comparison
equal deleted inserted replaced
7322:6c8c561becce 7323:5d6c51a125d0
1450 } 1450 }
1451 1451
1452 max = min; 1452 max = min;
1453 1453
1454 /* check for errors (?) */ 1454 /* check for errors (?) */
1455 if (!packet)
1456 return;
1457
1455 if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16])) 1458 if (i == 0 && (packet->type < 16 || packet->type >= 48 || fft_subpackets[packet->type - 16]))
1456 return; 1459 return;
1457 1460
1458 /* decode FFT tones */ 1461 /* decode FFT tones */
1459 init_get_bits (&gb, packet->data, packet->size*8); 1462 init_get_bits (&gb, packet->data, packet->size*8);