1
0
Fork 0
forked from len0rd/rockbox

-Remove calls to av_log() and use DEBUGF/printf instead, thuse removing

libavutil/log.[c/h] and libavutil/avutil.h.
-Take necessary defines to bitstream.h from libavutil/intreadwrite.h to 
remove the latter.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20918 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mohamed Tarek 2009-05-12 13:21:34 +00:00
parent 950c4747e3
commit f2c18d6922
10 changed files with 71 additions and 510 deletions

View file

@ -28,7 +28,14 @@
#include "cook.h"
//#define DUMP_RAW_FRAMES
#define DEBUGF(message,args ...) av_log(NULL,AV_LOG_ERROR,message,## args)
#ifndef DEBUGF
# if 0
# define DEBUGF(message,args ...) printf
# else
# define DEBUGF(...)
# endif
#endif
int main(int argc, char *argv[])
{
int fd, fd_dec;
@ -74,7 +81,7 @@ int main(int argc, char *argv[])
sps= rmctx.block_align;
h = rmctx.sub_packet_h;
cook_decode_init(&rmctx,&q);
av_log(NULL,AV_LOG_ERROR,"nb_frames = %d\n",nb_frames);
DEBUGF("nb_frames = %d\n",nb_frames);
x = 0;
if(packet_count % h)
{