Mercurial > libavcodec.hg
changeset 6699:99cf02b8f831 libavcodec
move MP3On4DecodeContext def near the code and under ifdef
author | bcoudurier |
---|---|
date | Sat, 26 Apr 2008 14:22:43 +0000 |
parents | 06f422f73ade |
children | dd38dc6306a8 |
files | mpegaudiodec.c |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegaudiodec.c Sat Apr 26 14:18:29 2008 +0000 +++ b/mpegaudiodec.c Sat Apr 26 14:22:43 2008 +0000 @@ -56,16 +56,6 @@ #define HEADER_SIZE 4 -/** - * Context for MP3On4 decoder - */ -typedef struct MP3On4DecodeContext { - int frames; ///< number of mp3 frames per block (number of mp3 decoder instances) - int chan_cfg; ///< channel config number - int syncword; ///< syncword patch - MPADecodeContext *mp3decctx[5]; ///< MPADecodeContext for every decoder instance -} MP3On4DecodeContext; - /* layer 3 "granule" */ typedef struct GranuleDef { uint8_t scfsi; @@ -2477,6 +2467,16 @@ #ifdef CONFIG_MP3ON4_DECODER +/** + * Context for MP3On4 decoder + */ +typedef struct MP3On4DecodeContext { + int frames; ///< number of mp3 frames per block (number of mp3 decoder instances) + int chan_cfg; ///< channel config number + int syncword; ///< syncword patch + MPADecodeContext *mp3decctx[5]; ///< MPADecodeContext for every decoder instance +} MP3On4DecodeContext; + #include "mpeg4audio.h" /* Next 3 arrays are indexed by channel config number (passed via codecdata) */