[FFmpeg-cvslog] r10965 - trunk/libavformat/mpeg.c

aurel subversion
Thu Nov 8 21:50:45 CET 2007


Author: aurel
Date: Thu Nov  8 21:50:45 2007
New Revision: 10965

Log:
fix negative fseek

Modified:
   trunk/libavformat/mpeg.c

Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c	(original)
+++ trunk/libavformat/mpeg.c	Thu Nov  8 21:50:45 2007
@@ -124,7 +124,7 @@ static int mpegps_read_header(AVFormatCo
     if ((p=memchr(buffer, 'S', sizeof(buffer))))
         if (!memcmp(p, "Sofdec", 6))
             m->sofdec = 1;
-    url_fseek(&s->pb, -sizeof(buffer), SEEK_CUR);
+    url_fseek(&s->pb, -(offset_t)sizeof(buffer), SEEK_CUR);
 
     /* no need to do more */
     return 0;




More information about the ffmpeg-cvslog mailing list