changeset 16815:78c84594247b

semi-hack: avoid passing 0-length blocks to audio filters. Fixes bugzilla bug #391 (lavcresample crashes).
author reimar
date Thu, 20 Oct 2005 09:12:28 +0000
parents 0c6f6ef27f3f
children cfe186231e2d
files libaf/af.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af.c	Thu Oct 20 05:54:51 2005 +0000
+++ b/libaf/af.c	Thu Oct 20 09:12:28 2005 +0000
@@ -503,6 +503,7 @@
   af_instance_t* af=s->first; 
   // Iterate through all filters 
   do{
+    if (data->len <= 0) break;
     data=af->play(af,data);
     af=af->next;
   }while(af);