]> git.sesse.net Git - vlc/commitdiff
x264: check that string has content before apply it as profile
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 3 Oct 2012 14:36:39 +0000 (17:36 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sat, 6 Oct 2012 11:06:41 +0000 (14:06 +0300)
modules/codec/x264.c

index 5ee11028e93a8c9d6d74e637d49afcfb6826fd15..00df2280263104c648d2a690c176602a091dcd19 100644 (file)
@@ -1264,7 +1264,7 @@ static int  Open ( vlc_object_t *p_this )
     /* Check if user has given some profile (baseline,main,high) to limit
      * settings, and apply those*/
     psz_val = var_GetString( p_enc, SOUT_CFG_PREFIX "profile" );
-    if( psz_val )
+    if( psz_val && *psz_val )
         x264_param_apply_profile( &p_sys->param, psz_val );
     free( psz_val );