Mercurial > libavcodec.hg
changeset 7306:7950572e58eb libavcodec
minor simplification of qdm2_decode_fft_packets()
author | michael |
---|---|
date | Fri, 18 Jul 2008 21:16:59 +0000 |
parents | f80042115f20 |
children | 52764a3665d8 |
files | qdm2.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/qdm2.c Fri Jul 18 20:59:17 2008 +0000 +++ b/qdm2.c Fri Jul 18 21:16:59 2008 +0000 @@ -1438,10 +1438,10 @@ /* process subpackets ordered by type, largest type first */ for (i = 0, max = 256; i < q->sub_packets_B; i++) { - QDM2SubPacket *packet; + QDM2SubPacket *packet= NULL; /* find subpacket with largest type less than max */ - for (j = 0, min = 0, packet = NULL; j < q->sub_packets_B; j++) { + for (j = 0, min = 0; j < q->sub_packets_B; j++) { value = q->sub_packet_list_B[j].packet->type; if (value > min && value < max) { min = value;