demux_sys_t *p_sys;
int i_width=-1, i_height=-1;
unsigned u_fps_num=0, u_fps_den=1;
- vlc_fourcc_t i_chroma;
+ vlc_fourcc_t i_chroma = 0;
unsigned int i_sar_num = 0;
unsigned int i_sar_den = 0;
const struct preset_t *p_preset = NULL;
goto error;
}
+ if( i_chroma == 0 )
+ {
+ msg_Err( p_demux, "invalid or no chroma specified." );
+ goto error;
+ }
+
/* fixup anything missing with sensible assumptions */
if( i_sar_num <= 0 || i_sar_den <= 0 )
{