Commit 11479f40 authored by aurel's avatar aurel

fix negative fseek

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10965 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent af920f04
......@@ -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;
......
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