Index: patched-ffmpeg-mt/libavformat/file.c |
=================================================================== |
--- patched-ffmpeg-mt/libavformat/file.c (revision 41250) |
+++ patched-ffmpeg-mt/libavformat/file.c (working copy) |
@@ -73,6 +73,8 @@ |
static int64_t file_seek(URLContext *h, int64_t pos, int whence) |
{ |
int fd = (intptr_t) h->priv_data; |
+ if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) |
+ return AVERROR_NOTSUPP; |
return lseek(fd, pos, whence); |
} |