From: Diego Biurrun Date: Fri, 15 May 2009 18:54:36 +0000 (+0000) Subject: cosmetics: Move some more code around to avoid #ifdeffery. X-Git-Tag: android-x86-4.4-r1~26454 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9c0ef69af73fd5b50f49895767e587f64bd45f66;p=android-x86%2Fexternal-ffmpeg.git cosmetics: Move some more code around to avoid #ifdeffery. Originally committed as revision 18846 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/libamr.c b/libavcodec/libamr.c index ee077216cf..a13facb152 100644 --- a/libavcodec/libamr.c +++ b/libavcodec/libamr.c @@ -292,7 +292,6 @@ AVCodec libamr_nb_encoder = #define typedef_h #endif -#include #include #include @@ -303,6 +302,15 @@ typedef struct AMRWB_bitrates int mode; } AMRWB_bitrates; +typedef struct AMRWBContext { + int frameCount; + void *state; + int mode; + Word16 allow_dtx; +} AMRWBContext; + +#include + static int getWBBitrateMode(int bitrate) { /* make the correspondance between bitrate and mode */ @@ -329,14 +337,6 @@ static int getWBBitrateMode(int bitrate) return -1; } - -typedef struct AMRWBContext { - int frameCount; - void *state; - int mode; - Word16 allow_dtx; -} AMRWBContext; - static av_cold int amr_wb_encode_init(AVCodecContext * avctx) { AMRWBContext *s = avctx->priv_data;