summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/wma.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-04-30 12:20:25 +0000
committerMohamed Tarek <mt@rockbox.org>2010-04-30 12:20:25 +0000
commitfe147cec651486d39967f24d0d1bbe6ae1cd067b (patch)
treeef15055d39c17e05c91f591b5d4f264bfd421e5e /apps/codecs/libwmapro/wma.c
parentcf43e5083b9e0f87de262ea31fd8067225ebfcda (diff)
downloadrockbox-fe147cec651486d39967f24d0d1bbe6ae1cd067b.tar.gz
rockbox-fe147cec651486d39967f24d0d1bbe6ae1cd067b.zip
Modify the ffmpeg source files in apps/codecs/libwmapro in order to compile the codec standalone.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25764 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/wma.c')
-rw-r--r--apps/codecs/libwmapro/wma.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/codecs/libwmapro/wma.c b/apps/codecs/libwmapro/wma.c
index 65780459aa..5306634c7c 100644
--- a/apps/codecs/libwmapro/wma.c
+++ b/apps/codecs/libwmapro/wma.c
@@ -21,11 +21,11 @@
21 21
22#include "avcodec.h" 22#include "avcodec.h"
23#include "wma.h" 23#include "wma.h"
24#include "wmadata.h" 24//#include "wmadata.h"
25 25
26#undef NDEBUG 26#undef NDEBUG
27#include <assert.h> 27#include <assert.h>
28 28#if 0
29/* XXX: use same run/length optimization as mpeg decoders */ 29/* XXX: use same run/length optimization as mpeg decoders */
30//FIXME maybe split decode / encode or pass flag 30//FIXME maybe split decode / encode or pass flag
31static void init_coef_vlc(VLC *vlc, uint16_t **prun_table, 31static void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
@@ -65,6 +65,7 @@ static void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
65 *pint_table = int_table; 65 *pint_table = int_table;
66 av_free(level_table); 66 av_free(level_table);
67} 67}
68#endif /* 0 */
68 69
69/** 70/**
70 *@brief Get the samples per frame for this stream. 71 *@brief Get the samples per frame for this stream.
@@ -106,6 +107,7 @@ int av_cold ff_wma_get_frame_len_bits(int sample_rate, int version,
106 return frame_len_bits; 107 return frame_len_bits;
107} 108}
108 109
110#if 0
109int ff_wma_init(AVCodecContext *avctx, int flags2) 111int ff_wma_init(AVCodecContext *avctx, int flags2)
110{ 112{
111 WMACodecContext *s = avctx->priv_data; 113 WMACodecContext *s = avctx->priv_data;
@@ -426,7 +428,7 @@ int ff_wma_end(AVCodecContext *avctx)
426 428
427 return 0; 429 return 0;
428} 430}
429 431#endif /* 0 */
430/** 432/**
431 * Decode an uncompressed coefficient. 433 * Decode an uncompressed coefficient.
432 * @param s codec context 434 * @param s codec context