Mercurial > libavformat.hg
changeset 2726:5dbc1dfc1300 libavformat
fix negative fseek
author | aurel |
---|---|
date | Thu, 08 Nov 2007 20:50:45 +0000 |
parents | 0fb209cef761 |
children | a21454bf80b8 |
files | mpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg.c Thu Nov 08 15:52:53 2007 +0000 +++ b/mpeg.c Thu Nov 08 20:50:45 2007 +0000 @@ -124,7 +124,7 @@ 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;