diff mp3.c @ 4274:39f62ce83e5a libavformat

Avoid allocating MPADecodeContext on stack. Instead move relevant fields into MPADecodeHeader and use it where appropriate.
author andoma
date Fri, 23 Jan 2009 12:09:32 +0000
parents 35c8abd32d93
children faf0db68fcda
line wrap: on
line diff
--- a/mp3.c	Thu Jan 22 23:35:31 2009 +0000
+++ b/mp3.c	Fri Jan 23 12:09:32 2009 +0000
@@ -395,7 +395,7 @@
     uint32_t v, spf;
     int frames = -1; /* Total number of frames in file */
     const int64_t xing_offtbl[2][2] = {{32, 17}, {17,9}};
-    MPADecodeContext c;
+    MPADecodeHeader c;
     int vbrtag_size = 0;
 
     v = get_be32(s->pb);