changeset 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 7bfda6330833
files libmpdemux/demux_mpg.c libmpdemux/demux_ts.c
diffstat 2 files changed, 0 insertions(+), 11 deletions(-) [+]
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:
--- a/libmpdemux/demux_ts.c	Tue Feb 27 20:15:31 2007 +0000
+++ b/libmpdemux/demux_ts.c	Tue Feb 27 20:22:05 2007 +0000
@@ -3111,12 +3111,6 @@
 	if(newpos < demuxer->movi_start)
   		newpos = demuxer->movi_start;	//begininng of stream
 
-#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);
 	for(i = 0; i < 8192; i++)
 		if(priv->ts.pids[i] != NULL)