Skip to content

Commit

Permalink
fix read_tracks when skip_reading
Browse files Browse the repository at this point in the history
  • Loading branch information
slava77devel committed Oct 8, 2021
1 parent 652f30c commit 46f7bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ int Event::read_tracks(FILE *fp, TrackVec& tracks, bool skip_reading)

if (skip_reading)
{
fseek(fp, data_size, SEEK_CUR);
fseek(fp, data_size-2, SEEK_CUR);// -2 because data_size counts itself and n_tracks too
n_tracks = -n_tracks;
}
else
Expand Down

0 comments on commit 46f7bfa

Please sign in to comment.