diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-12-22 20:04:28 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2018-12-22 20:12:10 -0500 |
commit | 9b9b30bd547c829157f3f83c71378f0bbd43241d (patch) | |
tree | d4f1df7303881d197e14ef8db1957705667526df /lib/rbcodec/codecs/librm/rm.h | |
parent | eee3f0ce79eb0b2ae2f272e814e10e6e9524c381 (diff) | |
download | rockbox-9b9b30bd547c829157f3f83c71378f0bbd43241d.tar.gz rockbox-9b9b30bd547c829157f3f83c71378f0bbd43241d.zip |
Realmedia related codecs fixes and enhancements
* More tolerance to the file format variations.
* AC3 coded files in realaudio format are now playable
Full credit to Igor Poretsky
Change-Id: Id24e94bc00623e89fb8c80403efa92f69ab1e5d7
Diffstat (limited to 'lib/rbcodec/codecs/librm/rm.h')
-rw-r--r-- | lib/rbcodec/codecs/librm/rm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/librm/rm.h b/lib/rbcodec/codecs/librm/rm.h index c4a4e3a77e..47ea559f2e 100644 --- a/lib/rbcodec/codecs/librm/rm.h +++ b/lib/rbcodec/codecs/librm/rm.h | |||
@@ -25,6 +25,9 @@ | |||
25 | #include <inttypes.h> | 25 | #include <inttypes.h> |
26 | #include "bytestream.h" | 26 | #include "bytestream.h" |
27 | 27 | ||
28 | #define RM_RAW_DATASTREAM 0x0100 | ||
29 | #define RM_PKT_V1 0x0200 | ||
30 | |||
28 | #define MAX_EXTRADATA_SIZE 16 | 31 | #define MAX_EXTRADATA_SIZE 16 |
29 | #define DATA_HEADER_SIZE 18 | 32 | #define DATA_HEADER_SIZE 18 |
30 | #define PACKET_HEADER_SIZE 12 | 33 | #define PACKET_HEADER_SIZE 12 |
@@ -86,6 +89,8 @@ typedef struct rm_context | |||
86 | 89 | ||
87 | int real_parse_header(int fd, RMContext *rmctx); | 90 | int real_parse_header(int fd, RMContext *rmctx); |
88 | 91 | ||
92 | void rm_ac3_swap_bytes(uint8_t *buf, int bufsize); | ||
93 | |||
89 | /* Get a (sub_packet_h*frames_per_packet) number of audio frames from a memory buffer */ | 94 | /* Get a (sub_packet_h*frames_per_packet) number of audio frames from a memory buffer */ |
90 | int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt); | 95 | int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt); |
91 | 96 | ||