summaryrefslogtreecommitdiff
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-14 20:08:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-14 20:08:13 +0100
commit8ddfc00ab7ac3691464b33fa83107dcfdabaf1ee (patch)
tree62e46680f59b678425a505b7eefdf813f30003fa /libavformat/mp3dec.c
parented86dbd05d61363dc1c0d33f3267e2177c985fdd (diff)
avformat/mp3dec: Name the dummy variable as what it is, to avoid confusion
Found-by: nattyzs <nattyzs@163.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index c4c1bb7ca5..519d046211 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -58,7 +58,7 @@ typedef struct {
static int mp3_read_probe(AVProbeData *p)
{
int max_frames, first_frames = 0;
- int fsize, frames, sample_rate;
+ int fsize, frames;
uint32_t header;
const uint8_t *buf, *buf0, *buf2, *end;
AVCodecContext avctx;
@@ -77,8 +77,9 @@ static int mp3_read_probe(AVProbeData *p)
continue;
for(frames = 0; buf2 < end; frames++) {
+ int dummy;
header = AV_RB32(buf2);
- fsize = avpriv_mpa_decode_header(&avctx, header, &sample_rate, &sample_rate, &sample_rate, &sample_rate);
+ fsize = avpriv_mpa_decode_header(&avctx, header, &dummy, &dummy, &dummy, &dummy);
if(fsize < 0)
break;
buf2 += fsize;