diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-05-04 22:12:55 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-05-06 18:33:16 +0300 |
commit | b68f9fef32971095836ea6bbeb2f12af417120d2 (patch) | |
tree | 46288d0356764318d595a946d22ca31eaf6b0101 /libmpdemux/aac_hdr.c | |
parent | 40f6ab5064a628dc11b79b5e571dc9444efac093 (diff) | |
download | mpv-b68f9fef32971095836ea6bbeb2f12af417120d2.tar.bz2 mpv-b68f9fef32971095836ea6bbeb2f12af417120d2.tar.xz |
cleanup: shut up more warnings
Diffstat (limited to 'libmpdemux/aac_hdr.c')
-rw-r--r-- | libmpdemux/aac_hdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/aac_hdr.c b/libmpdemux/aac_hdr.c index aed06f0e28..36991e27a2 100644 --- a/libmpdemux/aac_hdr.c +++ b/libmpdemux/aac_hdr.c @@ -20,6 +20,7 @@ #include <stdint.h> #include "aac_hdr.h" +#include "libavutil/attributes.h" /// \param srate (out) sample rate /// \param num (out) number of audio frames in this ADTS frame @@ -27,7 +28,7 @@ /// aac_parse_frames needs a buffer at least 8 bytes long int aac_parse_frame(uint8_t *buf, int *srate, int *num) { - int i = 0, sr, fl = 0, id; + int i = 0, sr, fl = 0, id av_unused; static int srates[] = {96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 0, 0, 0}; if((buf[i] != 0xFF) || ((buf[i+1] & 0xF6) != 0xF0)) |