summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-19 00:57:41 +0100
committerwm4 <wm4@nowhere>2012-11-20 18:00:15 +0100
commit2a353381f32c955eee0f2051d34375eba9459e6a (patch)
treeecaecc06a42370caa52ec9339e7a9ca2c6d820cf /configure
parent6f6dfc5163c3e1442f1c480e3dbd645ecd740eb5 (diff)
downloadmpv-2a353381f32c955eee0f2051d34375eba9459e6a.tar.bz2
mpv-2a353381f32c955eee0f2051d34375eba9459e6a.tar.xz
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).
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions