picture_t *p_pic;
/* Initialize the output structure */
- p_vout->output.i_chroma = VLC_FOURCC( 'R', 'V', '2', '4' );
+ p_vout->output.i_chroma = p_vout->render.i_chroma;
p_vout->output.pf_setpalette = NULL;
p_vout->output.i_width = p_vout->render.i_width;
p_vout->output.i_height = p_vout->render.i_height;
return;
}
p_vout->p_sys->i_frames++;
- fmt_out.i_chroma = VLC_FOURCC( 'p', 'n', 'g', ' ');
psz_filename = (char *)malloc( strlen( p_vout->p_sys->psz_prefix ) +
10 );
+ fmt_in.i_chroma = p_vout->render.i_chroma;
+ fmt_out.i_width = fmt_in.i_width = p_vout->render.i_width;
+ fmt_out.i_height = fmt_in.i_height = p_vout->render.i_height;
+
p_vout->p_sys->i_current++;
sprintf( psz_filename, "%s%.6i.%s", p_vout->p_sys->psz_prefix,