mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
fix negative fseek
Originally committed as revision 10965 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5c470b910e
commit
cc04af3481
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user