summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/main.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2009-05-12 20:50:35 +0000
committerMohamed Tarek <mt@rockbox.org>2009-05-12 20:50:35 +0000
commit49ba646d579a89d5ff0e4f3d5eea237eea22aafd (patch)
tree32aa872eb82b16c22f1915543c1512b116513209 /apps/codecs/libcook/main.c
parent49fccaf2d925def5cc57fff4a09b98a8fe318cc8 (diff)
downloadrockbox-49ba646d579a89d5ff0e4f3d5eea237eea22aafd.tar.gz
rockbox-49ba646d579a89d5ff0e4f3d5eea237eea22aafd.zip
-Remove all dynamic allocations, hence remove cook_decode_close() which was basically
needed for freeing allocated memory. -Remove any ffmpeg-specific attributes (av_const,av_always_inline .. etc.). -Move some math functions to cook_fixpoint.h - libavutil/common.h is no longer needed. -Remove libavutil/mem.[c/h], libavutil/common.h and libavutil/internal.h. -Fix a warning in cookdata_fixpoint.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20922 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libcook/main.c')
-rw-r--r--apps/codecs/libcook/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libcook/main.c b/apps/codecs/libcook/main.c
index 8b180b249d..3c671e0c3f 100644
--- a/apps/codecs/libcook/main.c
+++ b/apps/codecs/libcook/main.c
@@ -23,6 +23,7 @@
23#include <sys/stat.h> 23#include <sys/stat.h>
24#include <fcntl.h> 24#include <fcntl.h>
25#include <unistd.h> 25#include <unistd.h>
26#include <string.h>
26 27
27#include "rm2wav.h" 28#include "rm2wav.h"
28#include "cook.h" 29#include "cook.h"
@@ -111,8 +112,7 @@ int main(int argc, char *argv[])
111 } 112 }
112 packet_count -= rmctx.audio_pkt_cnt; 113 packet_count -= rmctx.audio_pkt_cnt;
113 rmctx.audio_pkt_cnt = 0; 114 rmctx.audio_pkt_cnt = 0;
114 } 115 }
115 cook_decode_close(&q);
116 close_wav(fd_dec,&rmctx); 116 close_wav(fd_dec,&rmctx);
117 close(fd); 117 close(fd);
118 118