projects
/
platform
/
upstream
/
libvorbis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
700cd11
)
Catch one bulletproofing oversight; only an app bug would trip it
author
Monty
<xiphmont@xiph.org>
Tue, 24 Jul 2007 01:08:23 +0000
(
01:08
+0000)
committer
Monty
<xiphmont@xiph.org>
Tue, 24 Jul 2007 01:08:23 +0000
(
01:08
+0000)
svn path=/trunk/vorbis/; revision=13294
lib/vorbisfile.c
patch
|
blob
|
history
diff --git
a/lib/vorbisfile.c
b/lib/vorbisfile.c
index 6d6ec163f976598e3b5cf1dbab43bed0175648df..d878b4c0499112b234165a545e1e8c7b3540fb7e 100644
(file)
--- a/
lib/vorbisfile.c
+++ b/
lib/vorbisfile.c
@@
-553,7
+553,7
@@
static int _open_seekable2(OggVorbis_File *vf){
/* we're partially open and have a first link header state in
storage in vf */
/* we can seek, so set out learning all about this file */
- if(vf->callbacks.seek_func){
+ if(vf->callbacks.seek_func
&& vf->callbacks.tell_func
){
(vf->callbacks.seek_func)(vf->datasource,0,SEEK_END);
vf->offset=vf->end=(vf->callbacks.tell_func)(vf->datasource);
}else{