Commit b01c5580 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

Correctly fix printing of fourcc (backport patch from courmisch)

parent 09177fb3
......@@ -1796,12 +1796,10 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_subpic )
if( p_region->fmt.i_chroma != VLC_FOURCC('T','E','X','T') &&
p_region->fmt.i_chroma != VLC_FOURCC('Y','U','V','P') )
{
#if 0
char *psz_fourcc[5];
memset( &psz_fourcc, 0, 5 );
vlc_fourcc_to_char( p_region->fmt.i_chroma, &psz_fourcc[0] );
#endif
msg_Err( p_enc, "chroma '%4.4s' not supported", (char*)&p_region->fmt.i_chroma);
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 );
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment