[FFmpeg-devel] [PATCH] Do not call lseek() with whence==AVSEEK_SIZE
Mans Rullgard
mans
Sat Feb 13 16:12:38 CET 2010
---
libavformat/file.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavformat/file.c b/libavformat/file.c
index d2cb530..2c14bb0 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -73,6 +73,8 @@ static int file_write(URLContext *h, unsigned char *buf, int size)
static int64_t file_seek(URLContext *h, int64_t pos, int whence)
{
int fd = (intptr_t) h->priv_data;
+ if (whence == AVSEEK_SIZE)
+ return -1;
return lseek(fd, pos, whence);
}
--
1.6.6.1
More information about the ffmpeg-devel
mailing list