changeset 4221:643c7fd287e4 libavcodec

Fix declaration and code thingie
author gpoirier
date Mon, 20 Nov 2006 20:41:31 +0000
parents 4115a044e31d
children fa816309076b
files amr.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/amr.c	Mon Nov 20 20:35:47 2006 +0000
+++ b/amr.c	Mon Nov 20 20:41:31 2006 +0000
@@ -625,8 +625,9 @@
 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;