if ( p_sys->i_height || p_sys->i_width )
{
- video_format_t fmt_out = {0}, fmt_in = {0};
+ video_format_t fmt_out, fmt_in;
+
+ memset( &fmt_in, 0, sizeof(video_format_t) );
+ memset( &fmt_out, 0, sizeof(video_format_t) );
fmt_in = p_sys->p_decoder->fmt_out.video;
fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A');
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
char psz_buffer[10];
- int i_len = net_ReadNonBlock( p_stream, p_sys->i_fd, NULL, psz_buffer,
+ int i_len = net_ReadNonBlock( p_stream, p_sys->i_fd, NULL, (char *)&psz_buffer[0],
sizeof( psz_buffer ), 0 );
if ( i_len > 0 )
int mb_height = (id->ff_enc_c->height + 15) / 16;
int h_chroma_shift, v_chroma_shift;
int i;
-
+
avcodec_get_chroma_sub_sample( id->ff_enc_c->pix_fmt, &h_chroma_shift,
&v_chroma_shift );
id->ff_enc_c->coded_frame->mb_type,
(mb_width + 1) * mb_height
* sizeof(id->p_frame->mb_type[0]));
-
+
for ( i = 0; i < 2; i++ )
{
int stride = ((16 * mb_width )
return p_out;
}
-