1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Solomon Peachy 2018-12-22 20:04:28 -05:00
parent eee3f0ce79
commit 9b9b30bd54
8 changed files with 309 additions and 124 deletions

View file

@ -25,6 +25,9 @@
#include <inttypes.h>
#include "bytestream.h"
#define RM_RAW_DATASTREAM 0x0100
#define RM_PKT_V1 0x0200
#define MAX_EXTRADATA_SIZE 16
#define DATA_HEADER_SIZE 18
#define PACKET_HEADER_SIZE 12
@ -86,6 +89,8 @@ typedef struct rm_context
int real_parse_header(int fd, RMContext *rmctx);
void rm_ac3_swap_bytes(uint8_t *buf, int bufsize);
/* Get a (sub_packet_h*frames_per_packet) number of audio frames from a memory buffer */
int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt);