diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/mpeg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 015d6a9e2a..7e63bf21e3 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -1251,6 +1251,12 @@ static bool swap_one_chunk(void) | |||
1251 | return true; | 1251 | return true; |
1252 | } | 1252 | } |
1253 | 1253 | ||
1254 | static const unsigned char empty_id3_header[] = | ||
1255 | { | ||
1256 | 'I', 'D', '3', 0x04, 0x00, 0x00, | ||
1257 | 0x00, 0x00, 0x1f, 0x76 /* Size is 4096 minus 10 bytes for the header */ | ||
1258 | }; | ||
1259 | |||
1254 | static void mpeg_thread(void) | 1260 | static void mpeg_thread(void) |
1255 | { | 1261 | { |
1256 | static int pause_tick = 0; | 1262 | static int pause_tick = 0; |
@@ -1845,6 +1851,9 @@ static void mpeg_thread(void) | |||
1845 | mp3buf_write = 4096+417; | 1851 | mp3buf_write = 4096+417; |
1846 | memset(mp3buf, 0, 4096+417); | 1852 | memset(mp3buf, 0, 4096+417); |
1847 | 1853 | ||
1854 | /* Insert the ID3 header */ | ||
1855 | memcpy(mp3buf, empty_id3_header, sizeof(empty_id3_header)); | ||
1856 | |||
1848 | start_recording(); | 1857 | start_recording(); |
1849 | demand_irq_enable(true); | 1858 | demand_irq_enable(true); |
1850 | 1859 | ||