Commit cc04af34 authored by Aurelien Jacobs's avatar Aurelien Jacobs

fix negative fseek

Originally committed as revision 10965 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5c470b91
...@@ -124,7 +124,7 @@ static int mpegps_read_header(AVFormatContext *s, ...@@ -124,7 +124,7 @@ static int mpegps_read_header(AVFormatContext *s,
if ((p=memchr(buffer, 'S', sizeof(buffer)))) if ((p=memchr(buffer, 'S', sizeof(buffer))))
if (!memcmp(p, "Sofdec", 6)) if (!memcmp(p, "Sofdec", 6))
m->sofdec = 1; 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 */ /* no need to do more */
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment