1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/audio
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
..
decode core: fix crash when video filter returns inf as PTS 2012-11-20 18:00:15 +01:00
filter Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
out Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
format.c
format.h
mixer.c mixer: fix lowering hw volume while muted 2012-11-14 00:46:15 +01:00
mixer.h
reorder_ch.c
reorder_ch.h