From 6a29b75ba86bbe57ddaaca57f6d464c3d8d64636 Mon Sep 17 00:00:00 2001 From: xy Date: Sun, 12 Aug 2012 16:36:23 +0800 Subject: [PATCH] Bugfix: fix crash when a \clip runs out of video frame. --- src/subtitles/RTS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subtitles/RTS.cpp b/src/subtitles/RTS.cpp index d0ad56510..da6aa9fdf 100644 --- a/src/subtitles/RTS.cpp +++ b/src/subtitles/RTS.cpp @@ -3388,7 +3388,7 @@ STDMETHODIMP CRenderedTextSubtitle::ParseScript(SubPicDesc& spd, REFERENCE_TIME CSubtitle* s = GetSubtitle(entry); if(!s) continue; stss->animated |= s->m_fAnimated2; - CRect clipRect = s->m_clip; + CRect clipRect = s->m_clip & CRect(0,0, spd.w, spd.h); CRect r = s->m_rect; CSize spaceNeeded = r.Size(); // apply the effects