diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-10 18:09:52 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-10 18:09:52 +0000 |
commit | 24e208b65b81e9250e4c6b174956d35b9e595668 (patch) | |
tree | 8f419c40de3fd779f29f09d2a92a140378a14328 /libmpdemux | |
parent | 266c02e2e4ccb0b1c5af4d37a40b180ddace80c2 (diff) | |
download | mpv-24e208b65b81e9250e4c6b174956d35b9e595668.tar.bz2 mpv-24e208b65b81e9250e4c6b174956d35b9e595668.tar.xz |
identify jpg with case-insensitive 'jpg' or 'jpeg' string
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4644 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_mf.c b/libmpdemux/demux_mf.c index 06f8fb9036..e594a1e557 100644 --- a/libmpdemux/demux_mf.c +++ b/libmpdemux/demux_mf.c @@ -93,7 +93,8 @@ demuxer_t* demux_open_mf(demuxer_t* demuxer){ // 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; |