summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-02 19:09:40 +0100
committerwm4 <wm4@nowhere>2015-03-02 19:09:40 +0100
commitd0fee0ac33a02e3dcb6c4b27b554be70e6b64e7a (patch)
tree7106045af29e7f7a915c3c804347cb4dfb8a01a7 /wscript_build.py
parenta4b6bf8c41b54554286117b97e78412a32b5147f (diff)
downloadmpv-d0fee0ac33a02e3dcb6c4b27b554be70e6b64e7a.tar.bz2
mpv-d0fee0ac33a02e3dcb6c4b27b554be70e6b64e7a.tar.xz
demux_lavf: use this for image formats
Use the (relatively new) libavformat image format probing functionality, instead of letting demux_mf guess by file extension and MIME type. The libavformat support is weird, though. Traditionally, it uses an absolutely terrible hack to detect images by extension, _and_ (which is the horrible part) will randomly interpret parts of the filename as specifiers for matching by number. So something like '%03d' will be interpreted as placeholder for a frame number. The worst part is that such character sequences can be perfectly valid and common in http URLs. This is known as "image2" demuxer. The newer support, which probes by examining the file header, is split into several format-specific demuxers with names ending in "_pipe". So we check for such a name suffix. (At this point we're doing fine-grained hacking around ffmpeg weirdness, so a clean solution is impossible anyway until upstream changes.)
Diffstat (limited to 'wscript_build.py')
0 files changed, 0 insertions, 0 deletions