1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00
mpv/core
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
..
input command: add sub_reload and sub_remove commands 2012-11-16 21:21:15 +01:00
timeline clang: fix all warnings except deprecations 2012-11-13 22:19:18 +01:00
asxparser.c
asxparser.h
av_log.c
av_log.h
av_opts.c
av_opts.h
bstr.c
bstr.h
cfg-mplayer.h demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
codec-cfg.c
codec-cfg.h
command.c command: add sub_reload and sub_remove commands 2012-11-16 21:21:15 +01:00
command.h
cpudetect.c
cpudetect.h
defaultopts.c core: add --keep-open, which doesn't close the file on EOF 2012-11-16 21:21:15 +01:00
defaultopts.h
encode_lavc.c
encode_lavc.h
encode.h
m_config.c
m_config.h
m_option.c options: rename -ss and -endpos, allow relative times 2012-11-16 21:21:15 +01:00
m_option.h options: rename -ss and -endpos, allow relative times 2012-11-16 21:21:15 +01:00
m_property.c
m_property.h
m_struct.c
m_struct.h
mp_common.c
mp_common.h mp_common.h: split parts into mp_talloc.h and compiler.h 2012-11-12 20:08:57 +01:00
mp_core.h core: add --keep-open, which doesn't close the file on EOF 2012-11-16 21:21:15 +01:00
mp_fifo.c
mp_fifo.h
mp_msg.c build: remove doc/locale language auto-detection, simplify 2012-11-14 11:26:43 +01:00
mp_msg.h
mp_osd.h
mp_talloc.h mp_common.h: split parts into mp_talloc.h and compiler.h 2012-11-12 20:08:57 +01:00
mpc_info.h
mplayer.c subtitles: improve support for libavformat demuxed subtitles 2012-11-16 21:21:16 +01:00
mplayer.h
options.h core: add --keep-open, which doesn't close the file on EOF 2012-11-16 21:21:15 +01:00
parser-cfg.c
parser-cfg.h
parser-mpcmd.c
parser-mpcmd.h
path.c
path.h
playlist_parser.c options: rename -ss and -endpos, allow relative times 2012-11-16 21:21:15 +01:00
playlist_parser.h
playlist.c
playlist.h
quvi.c
screenshot.c
screenshot.h
subopt-helper.c
subopt-helper.h
version.c