Skip to content

Commit

Permalink
Bugfix: fix crash when a \clip runs out of video frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
x-xy-y committed Aug 12, 2012
1 parent 293df1a commit 6a29b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subtitles/RTS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a29b75

Please sign in to comment.