vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Nov 21 20:22:42 2016 +0100| [6338806fda02bd6aeff24bd39be6914c7cffe8fb] | committer: Francois Cartegnie
vfilter: erase: use video_format_Init/Clean > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6338806fda02bd6aeff24bd39be6914c7cffe8fb --- modules/video_filter/erase.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/video_filter/erase.c b/modules/video_filter/erase.c index d5bb723..8f6edfe 100644 --- a/modules/video_filter/erase.c +++ b/modules/video_filter/erase.c @@ -101,14 +101,15 @@ static void LoadMask( filter_t *p_filter, const char *psz_filename ) image_handler_t *p_image; video_format_t fmt_in, fmt_out; picture_t *p_old_mask = p_filter->p_sys->p_mask; - memset( &fmt_in, 0, sizeof( video_format_t ) ); - memset( &fmt_out, 0, sizeof( video_format_t ) ); - fmt_out.i_chroma = VLC_CODEC_YUVA; + video_format_Init( &fmt_in, 0 ); + video_format_Init( &fmt_out, VLC_CODEC_YUVA ); p_image = image_HandlerCreate( p_filter ); char *psz_url = vlc_path2uri( psz_filename, NULL ); p_filter->p_sys->p_mask = image_ReadUrl( p_image, psz_url, &fmt_in, &fmt_out ); free( psz_url ); + video_format_Clean( &fmt_in ); + video_format_Clean( &fmt_out ); if( p_filter->p_sys->p_mask ) { if( p_old_mask ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
