diff libmpdemux/demux_mpg.c @ 22352:3c9d0592f08a

removed duplicated code in demux_seek(); stream_seek() already aligns to STREAM_BUFFER_SIZE boundary
author nicodvb
date Tue, 27 Feb 2007 20:22:05 +0000
parents 1f40a27bd2ad
children 03ba33feaae9
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Tue Feb 27 20:15:31 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Tue Feb 27 20:22:05 2007 +0000
@@ -892,11 +892,6 @@
 	    if(newpos<demuxer->movi_start) newpos=demuxer->movi_start;
 	}
 
-#ifdef _LARGEFILE_SOURCE
-        newpos&=~((long long)STREAM_BUFFER_SIZE-1);  /* sector boundary */
-#else
-        newpos&=~(STREAM_BUFFER_SIZE-1);  /* sector boundary */
-#endif
         stream_seek(demuxer->stream,newpos);
 
         // re-sync video: