[MPlayer-cvslog] r25282 - trunk/libmpcodecs/dec_audio.c

rfelker subversion at mplayerhq.hu
Mon Dec 3 10:57:21 CET 2007


Author: rfelker
Date: Mon Dec  3 10:57:21 2007
New Revision: 25282

Log:
10l, len may change after initialization time

Modified:
   trunk/libmpcodecs/dec_audio.c

Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c	(original)
+++ trunk/libmpcodecs/dec_audio.c	Mon Dec  3 10:57:21 2007
@@ -365,7 +365,6 @@ static int filter_n_bytes(sh_audio_t *sh
     // Filter
     af_data_t filter_input = {
 	.audio = sh->a_buffer,
-	.len = len,
 	.rate = sh->samplerate,
 	.nch = sh->channels,
 	.format = sh->sample_format
@@ -388,6 +387,7 @@ static int filter_n_bytes(sh_audio_t *sh
 	sh->a_buffer_len += ret;
     }
 
+    filter_input.len = len;
     af_fix_parameters(&filter_input);
     filter_output = af_play(sh->afilter, &filter_input);
     if (!filter_output)



More information about the MPlayer-cvslog mailing list