1
0
Fork 0
forked from len0rd/rockbox

Change enum codecs in apps/codecs/librm/rm.h to follow the coding guidelines.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22067 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mohamed Tarek 2009-07-27 12:29:06 +00:00
parent 5f5d105755
commit c08a2c7c53
3 changed files with 8 additions and 8 deletions

View file

@ -529,7 +529,7 @@ int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
advance_buffer(src,12);
consumed += 12;
if (rmctx->codec_type == cook) {
if (rmctx->codec_type == CODEC_COOK) {
for(x = 0 ; x < w/sps; x++)
{
place = sps*(h*x+((h+1)/2)*(y&1)+(y>>1));
@ -538,7 +538,7 @@ int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
consumed += sps;
}
}
else if (rmctx->codec_type == aac) {
else if (rmctx->codec_type == CODEC_AAC) {
rmctx->sub_packet_cnt = (get_uint16be(*src) & 0xf0) >> 4;
advance_buffer(src, 2);
consumed += 2;

View file

@ -26,7 +26,7 @@
#define MAX_EXTRADATA_SIZE 16
enum codecs{cook, aac};
enum codecs{CODEC_COOK, CODEC_AAC};
typedef struct rm_packet
{
uint8_t *frames[100]; /* Pointers to ordered audio frames in buffer */