diff mpegaudiodecheader.c @ 8641:54e2916c25a5 libavcodec

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 04423b2f6e0b
children e9d9d946f213
line wrap: on
line diff
--- a/mpegaudiodecheader.c	Fri Jan 23 06:33:04 2009 +0000
+++ b/mpegaudiodecheader.c	Fri Jan 23 12:09:32 2009 +0000
@@ -30,7 +30,7 @@
 #include "mpegaudiodata.h"
 
 
-int ff_mpegaudio_decode_header(MPADecodeContext *s, uint32_t header)
+int ff_mpegaudio_decode_header(MPADecodeHeader *s, uint32_t header)
 {
     int sample_rate, frame_size, mpeg25, padding;
     int sample_rate_index, bitrate_index;