aac: removed unused initAacBuffer() parameters
Since we eliminated the parameters retFileread and retTagsize in all callers, we can now safely remove it from the function prototype.
This commit is contained in:
parent
4ca24b960b
commit
a6332fd13b
@ -132,8 +132,7 @@ static int adtsParse(AacBuffer * b, float *length)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initAacBuffer(InputStream * inStream, AacBuffer * b, float *length,
|
static void initAacBuffer(InputStream * inStream, AacBuffer * b, float *length)
|
||||||
size_t * retFileread, size_t * retTagsize)
|
|
||||||
{
|
{
|
||||||
size_t fileread;
|
size_t fileread;
|
||||||
size_t bread;
|
size_t bread;
|
||||||
@ -170,11 +169,6 @@ static void initAacBuffer(InputStream * inStream, AacBuffer * b, float *length,
|
|||||||
fillAacBuffer(b);
|
fillAacBuffer(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (retFileread)
|
|
||||||
*retFileread = fileread;
|
|
||||||
if (retTagsize)
|
|
||||||
*retTagsize = tagsize;
|
|
||||||
|
|
||||||
if (length == NULL)
|
if (length == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -230,7 +224,7 @@ static float getAacFloatTotalTime(char *file)
|
|||||||
if (openInputStream(&inStream, file) < 0)
|
if (openInputStream(&inStream, file) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
initAacBuffer(&inStream, &b, &length, NULL, NULL);
|
initAacBuffer(&inStream, &b, &length);
|
||||||
|
|
||||||
if (length < 0) {
|
if (length < 0) {
|
||||||
decoder = faacDecOpen();
|
decoder = faacDecOpen();
|
||||||
@ -298,7 +292,7 @@ static int aac_decode(struct decoder * mpd_decoder, char *path)
|
|||||||
if (openInputStream(&inStream, path) < 0)
|
if (openInputStream(&inStream, path) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
initAacBuffer(&inStream, &b, NULL, NULL, NULL);
|
initAacBuffer(&inStream, &b, NULL);
|
||||||
|
|
||||||
decoder = faacDecOpen();
|
decoder = faacDecOpen();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user