Skip to content

Commit

Permalink
Merge pull request #57 from jason77lee/pcc
Browse files Browse the repository at this point in the history
BugFix in newly added function rewindData()
  • Loading branch information
podborski committed Feb 21, 2024
2 parents 5056052 + a62daf6 commit cf96e3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IsoLib/libisomediafile/src/MP4FileMappingInputStream.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ static MP4Err rewindData(struct MP4InputStreamRecord *s, u64 bytes, char *msg)
MP4Err err;
MP4FileMappingInputStreamPtr self = (MP4FileMappingInputStreamPtr)s;

if(bytes > self->current_offset) BAILWITHERROR(MP4BadParamErr);
err = MP4NoErr;

CHECK_AVAIL(bytes)
self->available += bytes;
self->current_offset -= bytes;

Expand Down
2 changes: 1 addition & 1 deletion IsoLib/libisomediafile/src/MP4MemoryInputStream.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ static MP4Err rewindData(struct MP4InputStreamRecord *s, u64 bytes, char *msg)
MP4Err err;
MP4FileMappingInputStreamPtr self = (MP4FileMappingInputStreamPtr)s;

if(bytes > self->current_offset) BAILWITHERROR(MP4BadParamErr);
err = MP4NoErr;

CHECK_AVAIL(bytes)
self->available += bytes;
self->current_offset -= bytes;

Expand Down

0 comments on commit cf96e3a

Please sign in to comment.