[FFmpeg-cvslog] postprocess: Remove test for impossible condition (was: Re: postprocess.c: replace check for p==NULL with *p==0)

Piotr Kaczuba git at videolan.org
Thu Jun 2 14:56:10 CEST 2011


ffmpeg | branch: master | Piotr Kaczuba <p.kaczuba at attika.ath.cx> | Wed Jun  1 18:47:37 2011 +0200| [c96f3750c22ef1576a46140f3101e3585041f41f] | committer: Michael Niedermayer

postprocess: Remove test for impossible condition (was: Re: postprocess.c: replace check for p==NULL with *p==0)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c96f3750c22ef1576a46140f3101e3585041f41f
---

 libpostproc/postprocess.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index bfb96e1..589c2ce 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -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;



More information about the ffmpeg-cvslog mailing list