1
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 01:36:25 +01: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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asxparser.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
av_log.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
av_log.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
av_opts.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
av_opts.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
bstr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
bstr.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
cfg-mplayer.h demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
codec-cfg.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
codec-cfg.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
command.c command: export A/V sync difference as "avsync" property 2012-11-16 21:21:16 +01:00
command.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
cpudetect.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
cpudetect.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
defaultopts.c core: add --keep-open, which doesn't close the file on EOF 2012-11-16 21:21:15 +01:00
defaultopts.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
encode_lavc.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
encode_lavc.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
encode.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
m_config.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_config.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_property.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
m_struct.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_struct.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_common.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_fifo.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_msg.c build: remove doc/locale language auto-detection, simplify 2012-11-14 11:26:43 +01:00
mp_msg.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_osd.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
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 Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
mplayer.c core: fix crash when video filter returns inf as PTS 2012-11-20 18:00:15 +01:00
mplayer.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
parser-mpcmd.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
parser-mpcmd.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
path.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
path.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
playlist_parser.c options: rename -ss and -endpos, allow relative times 2012-11-16 21:21:15 +01:00
playlist_parser.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
playlist.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
playlist.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
quvi.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
screenshot.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
screenshot.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
subopt-helper.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
subopt-helper.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
version.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00