postprocess: Remove test for impossible condition (was: Re: postprocess.c: replace...
authorPiotr Kaczuba <p.kaczuba@attika.ath.cx>
Wed, 1 Jun 2011 16:47:37 +0000 (18:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 2 Jun 2011 12:43:14 +0000 (14:43 +0200)
libpostproc/postprocess.c

index bfb96e1..589c2ce 100644 (file)
@@ -819,8 +819,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
                 int plen;
                 int spaceLeft;
 
-                if(p==NULL) p= temp, *p=0;      //last filter
-                else p--, *p=',';               //not last filter
+                p--, *p=',';
 
                 plen= strlen(p);
                 spaceLeft= p - temp + plen;