summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcompn <compn@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-21 19:46:13 +0000
committercompn <compn@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-21 19:46:13 +0000
commitf8a56efb5ce7b238a2557618984c4ce5f88fc936 (patch)
treee9d8e1d966c417773150f266489bb9775893b4b2
parent8c820cce4849b6ef22a1df78bc846893512c5f98 (diff)
downloadmpv-f8a56efb5ce7b238a2557618984c4ce5f88fc936.tar.bz2
mpv-f8a56efb5ce7b238a2557618984c4ce5f88fc936.tar.xz
map jls (jpeg-ls), thm and db (thumbnails) files to jpg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29025 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_mf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpdemux/demux_mf.c b/libmpdemux/demux_mf.c
index f7c241feed..dc990c0b8f 100644
--- a/libmpdemux/demux_mf.c
+++ b/libmpdemux/demux_mf.c
@@ -58,6 +58,8 @@ static int demux_mf_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds){
return 1;
}
+// force extension/type to have a fourcc
+
static const struct {
const char *type;
uint32_t format;
@@ -65,6 +67,9 @@ static const struct {
{ "bmp", mmioFOURCC('b', 'm', 'p', ' ') },
{ "jpeg", mmioFOURCC('I', 'J', 'P', 'G') },
{ "jpg", mmioFOURCC('I', 'J', 'P', 'G') },
+ { "jls", mmioFOURCC('I', 'J', 'P', 'G') },
+ { "thm", mmioFOURCC('I', 'J', 'P', 'G') },
+ { "db", mmioFOURCC('I', 'J', 'P', 'G') },
{ "pcx", mmioFOURCC('p', 'c', 'x', ' ') },
{ "png", mmioFOURCC('M', 'P', 'N', 'G') },
{ "ptx", mmioFOURCC('p', 't', 'x', ' ') },