1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00
mpv/audio/decode
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
..
ad_dvdpcm.c
ad_internal.h
ad_lavc.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
ad_mpg123.c
ad_pcm.c
ad_spdif.c
ad.c
ad.h
dec_audio.c core: fix crash when video filter returns inf as PTS 2012-11-20 18:00:15 +01:00
dec_audio.h