pkgsrc/multimedia/libmp4v2/patches/patch-au
christos 707615c61c PR/46089: David Shao: Don't use f{g,s}etpos because there is no portable
way of extracting the offset from them, which is all that is needed in
this case. Just use fseeko/ftello.
2012-02-24 18:36:48 +00:00

15 lines
487 B
Text

$NetBSD: patch-au,v 1.1 2012/02/24 18:36:49 christos Exp $
--- player/src/codec/mp3/mp3_file.cpp.orig 2006-04-17 15:03:50.000000000 -0400
+++ player/src/codec/mp3/mp3_file.cpp 2012-02-24 13:07:57.000000000 -0500
@@ -424,9 +424,7 @@
mp3->m_framecount = fpos->frames;
mp3->m_buffer_on = 0;
mp3->m_buffer_size = 0;
- fpos_t pos;
- VAR_TO_FPOS(pos, fpos->file_position);
- fsetpos(mp3->m_ifile, &pos);
+ fseeko(mp3->m_ifile, fpos->file_position, SEEK_SET);
return 0;
}