summaryrefslogtreecommitdiff
path: root/libavcodec/amr.c
diff options
context:
space:
mode:
authorGuillaume Poirier <gpoirier@mplayerhq.hu>2006-11-20 20:41:31 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-11-20 20:41:31 +0000
commit8db4f43c6882c1209073abe96c5ce68c8d13d80c (patch)
tree5b646b6158037c108745c0089e334a0870b2547e /libavcodec/amr.c
parent4ec0ccb1a4181d5c103809c90ece5fd87b70e091 (diff)
Fix declaration and code thingie
Originally committed as revision 7140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/amr.c')
-rw-r--r--libavcodec/amr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/amr.c b/libavcodec/amr.c
index 12c918bf5b..2d1877b222 100644
--- a/libavcodec/amr.c
+++ b/libavcodec/amr.c
@@ -625,8 +625,9 @@ static int amr_wb_encode_close(AVCodecContext * avctx)
static int amr_wb_encode_frame(AVCodecContext *avctx,
unsigned char *frame/*out*/, int buf_size, void *data/*in*/)
{
- AMRWBContext *s = (AMRWBContext*) avctx->priv_data;
+ AMRWBContext *s;
int size;
+ s = (AMRWBContext*) avctx->priv_data;
s->mode=getWBBitrateMode(avctx->bit_rate);
size = E_IF_encode(s->state, s->mode, data, frame, s->allow_dtx);
return size;