Unverified Commit 56d33b2c authored by sezero's avatar sezero Committed by Timothy B. Terriberry
Browse files

Fix minor typo in return type of op_serialno()

If, e.g. using a differently configured config_types.h with a long
vs. int conflict in the int32 typedef, this would have resulted in
a build failure.
Signed-off-by: Timothy B. Terriberry's avatarTimothy B. Terriberry <tterribe@xiph.org>
parent aad0409a
...@@ -1704,7 +1704,7 @@ int op_link_count(const OggOpusFile *_of){ ...@@ -1704,7 +1704,7 @@ int op_link_count(const OggOpusFile *_of){
return _of->nlinks; return _of->nlinks;
} }
ogg_uint32_t op_serialno(const OggOpusFile *_of,int _li){ opus_uint32 op_serialno(const OggOpusFile *_of,int _li){
if(OP_UNLIKELY(_li>=_of->nlinks))_li=_of->nlinks-1; if(OP_UNLIKELY(_li>=_of->nlinks))_li=_of->nlinks-1;
if(!_of->seekable)_li=0; if(!_of->seekable)_li=0;
return _of->links[_li<0?_of->cur_link:_li].serialno; return _of->links[_li<0?_of->cur_link:_li].serialno;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment