Commit 2afd7844 authored by bcoudurier's avatar bcoudurier

move MP3On4DecodeContext def near the code and under ifdef

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12993 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3c774e50
......@@ -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 @@ static int decode_frame_adu(AVCodecContext * avctx,
#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) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment