pkgsrc/multimedia/libmp4v2/patches/patch-av
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
488 B
Text

$NetBSD: patch-av,v 1.1 2012/02/24 18:36:49 christos Exp $
--- player/src/codec/mpeg4/mpeg4_file.cpp.orig 2005-05-09 17:30:19.000000000 -0400
+++ player/src/codec/mpeg4/mpeg4_file.cpp 2012-02-24 13:08:16.000000000 -0500
@@ -362,9 +362,7 @@
divx->m_buffer_on = 0;
divx->m_buffer_size = 0;
- fpos_t pos;
- VAR_TO_FPOS(pos, fpos->file_position);
- fsetpos(divx->m_ifile, &pos);
+ fseeko(divx->m_ifile, fpos->file_position, SEEK_SET);
divx_reset_buffer(divx);
return 0;
}