Skip to content

Commit 6094e12

Browse files
committed
README
1 parent 873545c commit 6094e12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ make
6969

7070
## Parameters
7171

72-
The decoder needs to allocate a buffer to store a frame and the decoded data. The following default values have been defined:
72+
The decoder needs to allocate a buffer to store a frame and the decoded data. The following default values have been defined in ConfigHelix.h:
7373

7474
```
7575
#define MP3_MAX_OUTPUT_SIZE 1024 * 5
76-
#define MP3_MAX_FRAME_SIZE 1600
77-
#define AAC_MAX_OUTPUT_SIZE 1024 * 3
76+
#define MP3_MAX_FRAME_SIZE 1024 * 2
77+
#define AAC_MAX_OUTPUT_SIZE 1024 * 8
7878
#define AAC_MAX_FRAME_SIZE 2100
7979
```
8080

8181
These values are working with standard bitrates, but in some exceptional cases (with extreme (220kbs) or insane (320kbs) bitrates) you might need to increase these values e.g. to
8282
```
83-
#define MP3_MAX_OUTPUT_SIZE 2048 * 5
83+
#define MP3_MAX_OUTPUT_SIZE 1024 * 10
8484
#define MP3_MAX_FRAME_SIZE 3200
8585
```
8686

src/ConfigHelix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// aac
2424
#ifndef AAC_MAX_OUTPUT_SIZE
25-
# define AAC_MAX_OUTPUT_SIZE 1024 * 4 * 2
25+
# define AAC_MAX_OUTPUT_SIZE 1024 * 8
2626
#endif
2727
#ifndef AAC_MAX_FRAME_SIZE
2828
# define AAC_MAX_FRAME_SIZE 2100

0 commit comments

Comments
 (0)