[vlc-commits] deinterlace: fix segmentation fault (fixes #9916)
Rémi Denis-Courmont
git at videolan.org
Mon Dec 2 17:05:24 CET 2013
vlc/vlc-2.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 2 18:04:19 2013 +0200| [1fd9c04bcb1ace7e6d583be9dc053798767a276f] | committer: Rémi Denis-Courmont
deinterlace: fix segmentation fault (fixes #9916)
(cherry picked from commit 9594f247286f36a45b81ba7cbd7273858e9f07ed)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=1fd9c04bcb1ace7e6d583be9dc053798767a276f
---
modules/video_filter/deinterlace/deinterlace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_filter/deinterlace/deinterlace.c b/modules/video_filter/deinterlace/deinterlace.c
index f7d5f64..e6a0b0f 100644
--- a/modules/video_filter/deinterlace/deinterlace.c
+++ b/modules/video_filter/deinterlace/deinterlace.c
@@ -642,13 +642,14 @@ notsupp:
if( !p_sys )
return VLC_ENOMEM;
+ p_sys->chroma = chroma;
+
config_ChainParse( p_filter, FILTER_CFG_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
char *psz_mode = var_InheritString( p_filter, FILTER_CFG_PREFIX "mode" );
SetFilterMethod( p_filter, psz_mode, packed );
free( psz_mode );
- p_sys->chroma = chroma;
for( int i = 0; i < METADATA_SIZE; i++ )
{
p_sys->meta.pi_date[i] = VLC_TS_INVALID;
More information about the vlc-commits
mailing list