[vlc-commits] x264: check that string has content before apply it as profile
Ilkka Ollakka
git at videolan.org
Sat Oct 6 13:08:26 CEST 2012
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Oct 3 17:36:39 2012 +0300| [a723d31ff68ed4f38ca3bddfe6922c423eebbb3d] | committer: Ilkka Ollakka
x264: check that string has content before apply it as profile
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a723d31ff68ed4f38ca3bddfe6922c423eebbb3d
---
modules/codec/x264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 5ee1102..00df228 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -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 );
More information about the vlc-commits
mailing list