[vlc-commits] DVBsub encoder: don't use vlc_fourcc_to_char

Jean-Baptiste Kempf git at videolan.org
Tue Jun 23 11:05:34 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun 23 11:02:17 2015 +0200| [c72861ca3706ca8bc15a7a93e2fa6459d489721f] | committer: Jean-Baptiste Kempf

DVBsub encoder: don't use vlc_fourcc_to_char

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c72861ca3706ca8bc15a7a93e2fa6459d489721f
---

 modules/codec/dvbsub.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/codec/dvbsub.c b/modules/codec/dvbsub.c
index b0ef809..879bc8d 100644
--- a/modules/codec/dvbsub.c
+++ b/modules/codec/dvbsub.c
@@ -1966,10 +1966,7 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_subpic )
     if( ( p_region->fmt.i_chroma != VLC_CODEC_TEXT ) &&
         ( p_region->fmt.i_chroma != VLC_CODEC_YUVP ) )
     {
-        char psz_fourcc[5];
-        memset( &psz_fourcc, 0, sizeof( psz_fourcc ) );
-        vlc_fourcc_to_char( p_region->fmt.i_chroma, &psz_fourcc );
-        msg_Err( p_enc, "chroma %4.4s not supported", psz_fourcc );
+        msg_Err( p_enc, "chroma %4.4s not supported", (char *)&p_region->fmt.i_chroma );
         return NULL;
     }
 



More information about the vlc-commits mailing list