aac: K&R formatting cosmetics
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
2e708f1708
commit
afdf94689c
@ -26,7 +26,6 @@
|
||||
#include "rawdec.h"
|
||||
#include "id3v1.h"
|
||||
|
||||
|
||||
static int adts_aac_probe(AVProbeData *p)
|
||||
{
|
||||
int max_frames = 0, first_frames = 0;
|
||||
@ -54,11 +53,17 @@ static int adts_aac_probe(AVProbeData *p)
|
||||
if (buf == buf0)
|
||||
first_frames = frames;
|
||||
}
|
||||
if (first_frames>=3) return AVPROBE_SCORE_EXTENSION + 1;
|
||||
else if(max_frames>500)return AVPROBE_SCORE_EXTENSION;
|
||||
else if(max_frames>=3) return AVPROBE_SCORE_EXTENSION / 2;
|
||||
else if(max_frames>=1) return 1;
|
||||
else return 0;
|
||||
|
||||
if (first_frames >= 3)
|
||||
return AVPROBE_SCORE_EXTENSION + 1;
|
||||
else if (max_frames > 500)
|
||||
return AVPROBE_SCORE_EXTENSION;
|
||||
else if (max_frames >= 3)
|
||||
return AVPROBE_SCORE_EXTENSION / 2;
|
||||
else if (max_frames >= 1)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int adts_aac_read_header(AVFormatContext *s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user