# HG changeset patch # User alex # Date 1013364592 0 # Node ID e09b1a5b464d84e9cd2b46d3288cb3130f035407 # Parent e534c7dc0cc099dacb04f328a189af45010ff00f identify jpg with case-insensitive 'jpg' or 'jpeg' string diff -r e534c7dc0cc0 -r e09b1a5b464d libmpdemux/demux_mf.c --- a/libmpdemux/demux_mf.c Sun Feb 10 18:09:20 2002 +0000 +++ b/libmpdemux/demux_mf.c Sun Feb 10 18:09:52 2002 +0000 @@ -93,7 +93,8 @@ // video_read_properties() will choke sh_video->ds = demuxer->video; - if ( !strcmp( mf_type,"jpg" ) ) sh_video->format = mmioFOURCC('M', 'J', 'P', 'G'); + if ( !strcasecmp( mf_type,"jpg" ) || + !(strcasecmp(mf_type, "jpeg"))) sh_video->format = mmioFOURCC('M', 'J', 'P', 'G'); else { mp_msg(MSGT_DEMUX, MSGL_INFO, "[demux_mf] unknow input file type.\n" ); free( dmf ); return NULL; } sh_video->disp_w = mf_w;