diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-11-08 20:50:45 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-11-08 20:50:45 +0000 |
commit | cc04af3481438e74278fff4532a0956363155708 (patch) | |
tree | 01c1a74ccb2201f8176ceaf10fc4862d1bc80389 /libavformat/mpeg.c | |
parent | 5c470b910e3b78e8a9b1aeb05ae4a40a3a3324a5 (diff) | |
download | ffmpeg-cc04af3481438e74278fff4532a0956363155708.tar.gz |
fix negative fseek
Originally committed as revision 10965 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 3a009b606c..34168ba786 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -124,7 +124,7 @@ static int mpegps_read_header(AVFormatContext *s, 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; |