PRS: Fixed bug where only half of the frames of animations were rendered, and non-animated subtitles were always extended by one frame in length.
Originally committed to SVN as r308.
This commit is contained in:
parent
e50ca28672
commit
d34eeccd6e
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ void PRSSubtitleFormat::InsertFrame(PRSFile &file,int &framen,std::vector<int> &
|
|||
int startf = framen;
|
||||
int totalFrames = frames.size();
|
||||
while (++framen<totalFrames && frames[framen] == 1);
|
||||
framen--; // need -1, otherwise all sub-images are extended by one frame
|
||||
int endf = framen;
|
||||
int start = VFR_Output.GetTimeAtFrame(startf,true);
|
||||
int end = VFR_Output.GetTimeAtFrame(endf,false);
|
||||
|
|
Loading…
Reference in a new issue