Skip to content

Commit

Permalink
Fix jumping to wrong frame in exact mode; see phoboslab#9
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Jun 3, 2015
1 parent 9b6dab7 commit 8216df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsmpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ jsmpeg.prototype.seekToFrame = function(seekFrame, seekExact) {
// If we're seeking to the exact frame, we may have to decode some more frames before
// the one we want
if( seekExact ) {
for( var frame = target.frame; frame < seekFrame-1; frame++ ) {
for( var frame = target.frame; frame < seekFrame; frame++ ) {
this.decodePicture(DECODE_SKIP_OUTPUT);
this.findStartCode(START_PICTURE);
}
Expand Down

0 comments on commit 8216df3

Please sign in to comment.