- if( !strncmp( p_sys->psz_format, "png", 3 ) )
- fmt_out.i_chroma = VLC_FOURCC('p','n','g',' ');
- else
- fmt_out.i_chroma = VLC_FOURCC('j','p','e','g');
-
- if( (fmt_out.i_width == 0) && (fmt_out.i_height > 0) )
- {
- fmt_out.i_width = (fmt_in.i_width * fmt_out.i_height) / fmt_in.i_height;
- }
- else if( (fmt_out.i_height == 0) && (fmt_out.i_width > 0) )
- {
- fmt_out.i_height = (fmt_in.i_height * fmt_out.i_width) / fmt_in.i_width;
- }
- else if( (fmt_out.i_width == 0) && (fmt_out.i_height == 0) )
- {
- fmt_out.i_width = fmt_in.i_width;
- fmt_out.i_height = fmt_in.i_height;
- }