# HG changeset patch # User reimar # Date 1129799548 0 # Node ID 78c84594247b9f324efc588faaa8b41e860e82c1 # Parent 0c6f6ef27f3ff2789c5857acb4ac3a16f84f658b semi-hack: avoid passing 0-length blocks to audio filters. Fixes bugzilla bug #391 (lavcresample crashes). diff -r 0c6f6ef27f3f -r 78c84594247b libaf/af.c --- 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);