summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Öman <andreas@lonelycoder.com>2009-01-23 12:09:32 +0000
committerAndreas Öman <andreas@lonelycoder.com>2009-01-23 12:09:32 +0000
commitcf92cec7d8899ef887869628c66da30737ee54af (patch)
treeb3bb20c478aad380efa29fc33b2980bf3e04a36c /libavformat
parent2d4eeaadc41a0adf97d6b71677d014833df432e2 (diff)
Avoid allocating MPADecodeContext on stack.
Instead move relevant fields into MPADecodeHeader and use it where appropriate. Originally committed as revision 16728 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index eca9ad4240..8602206bd1 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -395,7 +395,7 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
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);