vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Nov 21 20:50:21 2016 +0100| [d9a1df6d4a7f97e1ed6d1e14f8e9ace0133063f4] | committer: Francois Cartegnie
codec: svcdsub: use video_format_Init/Clean > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9a1df6d4a7f97e1ed6d1e14f8e9ace0133063f4 --- modules/codec/svcdsub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/codec/svcdsub.c b/modules/codec/svcdsub.c index df33209..5cefa23 100644 --- a/modules/codec/svcdsub.c +++ b/modules/codec/svcdsub.c @@ -429,8 +429,7 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, block_t *p_data ) p_spu->b_ephemer = true; /* Create new subtitle region */ - memset( &fmt, 0, sizeof(video_format_t) ); - fmt.i_chroma = VLC_CODEC_YUVP; + video_format_Init( &fmt, VLC_CODEC_YUVP ); /** The video on which the subtitle sits, is scaled, probably @@ -457,6 +456,8 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, block_t *p_data ) } p_region = subpicture_region_New( &fmt ); + fmt.p_palette = NULL; + video_format_Clean( &fmt ); if( !p_region ) { msg_Err( p_dec, "cannot allocate SVCD subtitle region" ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
