changeset 25254:f1da4024c3ab

10l, len may change after initialization time
author rfelker
date Mon, 03 Dec 2007 09:57:21 +0000
parents 7862500323c5
children d4d231d92f3b
files libmpcodecs/dec_audio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c	Mon Dec 03 09:07:31 2007 +0000
+++ b/libmpcodecs/dec_audio.c	Mon Dec 03 09:57:21 2007 +0000
@@ -365,7 +365,6 @@
     // 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 @@
 	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)