We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b2343 commit f457b7bCopy full SHA for f457b7b
src/id3.c
@@ -1,5 +1,5 @@
1
/*
2
-** Copyright (C) 2010-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
+** Copyright (C) 2010-2017 Erik de Castro Lopo <erikd@mega-nerd.com>
3
**
4
** This program is free software; you can redistribute it and/or modify
5
** it under the terms of the GNU Lesser General Public License as published by
@@ -48,9 +48,11 @@ id3_skip (SF_PRIVATE * psf)
48
49
/* Calculate new file offset and position ourselves there. */
50
psf->fileoffset += offset + 10 ;
51
- psf_binheader_readf (psf, "p", psf->fileoffset) ;
52
53
- return 1 ;
+ if (psf->fileoffset < psf->filelength)
+ { psf_binheader_readf (psf, "p", psf->fileoffset) ;
54
+ return 1 ;
55
+ } ;
56
} ;
57
58
return 0 ;
0 commit comments