1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-06 23:21:54 +00:00
mpv/core
wm4 2a353381f3 core: fix crash when video filter returns inf as PTS
When a video filter returned inf as PTS, the player crashed. One
reason for this was that decode_audio() was called with a negative
minlen parameter, which at some point caused it to call a memory
allocation function with a ridiculous value, triggering an out of
memory code path in talloc.c. (talloc.c has been modified to abort()
on out of memory situations.)

Fix this by sanity checking minlen in decode_audio(). (The check
against outbuf->len always succeeded, because it's an unsigned
comparison.)

Make an existing sanity check in mplayer.c more robust: check for NaN
too, which happens if the video PTS is inf.

This happened with "-vf pullup,softpulldown" (but is not triggered when
the following commit is applied).
2012-11-20 18:00:15 +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: export A/V sync difference as "avsync" property 2012-11-16 21:21:16 +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: support chapters for --start and --end 2012-11-20 18:00:11 +01:00
m_option.h options: support chapters for --start and --end 2012-11-20 18:00:11 +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 core: fix crash when video filter returns inf as PTS 2012-11-20 18:00:15 +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 Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
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