summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/mp3data.h11
-rw-r--r--firmware/export/mpeg.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/firmware/export/mp3data.h b/firmware/export/mp3data.h
index 3961664815..f36120a4e5 100644
--- a/firmware/export/mp3data.h
+++ b/firmware/export/mp3data.h
@@ -59,17 +59,18 @@ struct mp3info {
#define VBR_TOC_FLAG 0x04
#define VBR_QUALITY_FLAG 0x08
-#define MAX_XING_HEADER_SIZE 288
+#define MAX_XING_HEADER_SIZE 576
-unsigned long find_next_frame(int fd, long *offset, long max_offset, unsigned long last_header);
+unsigned long find_next_frame(int fd, long *offset, long max_offset,
+ unsigned long last_header);
unsigned long mem_find_next_frame(int startpos, long *offset, long max_offset,
unsigned long last_header);
int get_mp3file_info(int fd, struct mp3info *info);
int count_mp3_frames(int fd, int startpos, int filesize,
void (*progressfunc)(int));
-int create_xing_header(int fd, int startpos, int filesize,
- unsigned char *buf, int num_frames,
- unsigned long header_template,
+int create_xing_header(int fd, long startpos, long filesize,
+ unsigned char *buf, unsigned long num_frames,
+ unsigned long rec_time, unsigned long header_template,
void (*progressfunc)(int), bool generate_toc);
#endif
diff --git a/firmware/export/mpeg.h b/firmware/export/mpeg.h
index a0ad3c405c..a7c9cac321 100644
--- a/firmware/export/mpeg.h
+++ b/firmware/export/mpeg.h
@@ -41,7 +41,7 @@
#define MPEG_MAX_PRERECORD_SECONDS 30
/* For ID3 info and VBR header */
-#define MPEG_RESERVED_HEADER_SPACE (4096 + 288)
+#define MPEG_RESERVED_HEADER_SPACE (4096 + 576)
#if (CONFIG_CODEC == MAS3587F) || defined(SIMULATOR)
void mpeg_init_recording(void);