]> git.sesse.net Git - vlc/commitdiff
Fix invalid FOURCC use
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 13 Sep 2007 20:29:02 +0000 (20:29 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 13 Sep 2007 20:29:02 +0000 (20:29 +0000)
modules/codec/dvbsub.c

index 8fc151ae8b882833616f17329d8f6cc72cb2bd48..7a07f29606d93964c12ed5fc29d97c8ee2e4d91d 100644 (file)
@@ -1906,9 +1906,9 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_subpic )
         p_region->fmt.i_chroma != VLC_FOURCC('Y','U','V','P') )
     {
         char psz_fourcc[5];
-        memset( &psz_fourcc, 0, sizeof(char)*5 );
+        memset( &psz_fourcc, 0, sizeof( psz_fourcc ) );
         vlc_fourcc_to_char( p_region->fmt.i_chroma, &psz_fourcc );
-        msg_Err( p_enc, "chroma %4s not supported", &psz_fourcc );
+        msg_Err( p_enc, "chroma %4s not supported", psz_fourcc );
         return NULL;
     }