Mercurial > mplayer.hg
changeset 4643:e09b1a5b464d
identify jpg with case-insensitive 'jpg' or 'jpeg' string
author | alex |
---|---|
date | Sun, 10 Feb 2002 18:09:52 +0000 |
parents | e534c7dc0cc0 |
children | c19fe4030bd4 |
files | libmpdemux/demux_mf.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;