[FFmpeg-cvslog] vf_pp: dont pass NULL into pp, it would fail

Michael Niedermayer git at videolan.org
Sat Jul 7 19:24:17 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jul  7 19:14:51 2012 +0200| [9fb08427d7a7ea507e1a3f96b9d377e2b30dbdca] | committer: Michael Niedermayer

vf_pp: dont pass NULL into pp, it would fail

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/libmpcodecs/vf_pp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/libmpcodecs/vf_pp.c b/libavfilter/libmpcodecs/vf_pp.c
index b70eedc..78cce1f 100644
--- a/libavfilter/libmpcodecs/vf_pp.c
+++ b/libavfilter/libmpcodecs/vf_pp.c
@@ -186,7 +186,7 @@ static int vf_open(vf_instance_t *vf, char *args){
     vf->priv->outfmt=vf_match_csp(&vf->next,fmt_list,IMGFMT_YV12);
     if(!vf->priv->outfmt) return 0; // no csp match :(
 
-    if(args){
+    if(args && *args){
         hex_mode= strtol(args, &endptr, 0);
         if(*endptr){
             name= args;



More information about the ffmpeg-cvslog mailing list