changeset 6704:2f439a593e56 libavcodec

merge init with declaration
author bcoudurier
date Sat, 26 Apr 2008 14:36:34 +0000
parents 656a92752424
children d5515254fbbd
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Sat Apr 26 14:34:01 2008 +0000
+++ b/mpegaudiodec.c	Sat Apr 26 14:36:34 2008 +0000
@@ -2566,15 +2566,13 @@
 {
     MP3On4DecodeContext *s = avctx->priv_data;
     MPADecodeContext *m;
-    int len, fsize, out_size = 0;
+    int fsize, len = buf_size, out_size = 0;
     uint32_t header;
     OUT_INT *out_samples = data;
     OUT_INT decoded_buf[MPA_FRAME_SIZE * MPA_MAX_CHANNELS];
     OUT_INT *outptr, *bp;
     int fr, j, n;
 
-    len = buf_size;
-
     *data_size = 0;
     // Discard too short frames
     if (buf_size < HEADER_SIZE)