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>
This commit is contained in:
parent
ed86dbd05d
commit
8ddfc00ab7
@ -58,7 +58,7 @@ typedef struct {
|
|||||||
static int mp3_read_probe(AVProbeData *p)
|
static int mp3_read_probe(AVProbeData *p)
|
||||||
{
|
{
|
||||||
int max_frames, first_frames = 0;
|
int max_frames, first_frames = 0;
|
||||||
int fsize, frames, sample_rate;
|
int fsize, frames;
|
||||||
uint32_t header;
|
uint32_t header;
|
||||||
const uint8_t *buf, *buf0, *buf2, *end;
|
const uint8_t *buf, *buf0, *buf2, *end;
|
||||||
AVCodecContext avctx;
|
AVCodecContext avctx;
|
||||||
@ -77,8 +77,9 @@ static int mp3_read_probe(AVProbeData *p)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
for(frames = 0; buf2 < end; frames++) {
|
for(frames = 0; buf2 < end; frames++) {
|
||||||
|
int dummy;
|
||||||
header = AV_RB32(buf2);
|
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)
|
if(fsize < 0)
|
||||||
break;
|
break;
|
||||||
buf2 += fsize;
|
buf2 += fsize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user