changeset 15242:f27a3f8d3241

gcc 2.95 compilation fix
author reimar
date Fri, 22 Apr 2005 18:38:47 +0000
parents 690f76d3bfc0
children 6b4a88f8ad39
files libmpcodecs/ae.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ae.c	Fri Apr 22 18:28:10 2005 +0000
+++ b/libmpcodecs/ae.c	Fri Apr 22 18:38:47 2005 +0000
@@ -26,10 +26,11 @@
 audio_encoder_t *new_audio_encoder(muxer_stream_t *stream, audio_encoding_params_t *params)
 {
 	int ris;
+	audio_encoder_t *encoder;
 	if(! params)
 		return NULL;
 	
-	audio_encoder_t *encoder = (audio_encoder_t *) calloc(1, sizeof(audio_encoder_t));
+	encoder = (audio_encoder_t *) calloc(1, sizeof(audio_encoder_t));
 	memcpy(&encoder->params, params, sizeof(audio_encoding_params_t));
 	encoder->stream = stream;