1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00
mpv/demux
wm4 7a1396b6ca demux_mf: allow displaying single image files, various cleanups
Enable autoprobing for demux_mf, so that image files can be directly
displayed with e.g. "mpv file.jpg --pause". (The --pause switch is
needed to prevent the window from closing immediately.)

Since demux_mf doesn't have any real file format probing and goes by
file extension only, move the demuxer down the demuxer list to ensure
it's checked last. (ffmpeg's demux_mf equivalent, "image2", probes by
file extensions too, and there doesn't seem to be anything that can
probe typical image file formats from binary data.)

Remove the --mf "w" and "h" suboptions. Don't pass the width/height to
the video stream header. Both of these are useless, because the decoder
reads the real image size at a later point from the file headers.
Remove setting the BITMAPINFOHEADER as well, as vd_lavc doesn't need
this.

Enable --correct-pts by default. This fixes displaying a single image
with vo_vdpau (as mentioned by uau).

Keep around a pointer to the sh_video stream header instead of
accessing demuxer->video->sh_video. Fixes a crash when deselecting the
video track.

Note that the format probing is incorrect when opening images from HTTP
locations. File extensions don't have to match the actual file format.
A correct implementation would require to check the MIME type, or to
probe the binary data correctly.
2012-11-16 21:21:16 +01:00
..
asf.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asfguid.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asfheader.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asfheader.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
aviheader.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
aviheader.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
aviprint.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
aviprint.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
demux_asf.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_avi.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_cue.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_edl.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_gif.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_lavf.c subtitles: improve support for libavformat demuxed subtitles 2012-11-16 21:21:16 +01:00
demux_mf.c demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
demux_mkv.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_mng.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_mpg.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_packet.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
demux_rawaudio.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_rawvideo.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_ts.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
demux_ts.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
demux.c demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
demux.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
ebml.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
ebml.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
extension.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
matroska.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
mf.c demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
mf.h demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
mp3_hdr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp3_hdr.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
mp_taglists.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
mp_taglists.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
mpeg_hdr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mpeg_hdr.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
ms_hdr.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
parse_es.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
parse_es.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stheader.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
video.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00