[FFmpeg-devel] [PATCH] Do not call lseek() with whence==AVSEEK_SIZE
avcoder
ffmpeg
Sat Feb 13 16:56:30 CET 2010
Dear:
Just notice you that I post the same patch on 2010/01/04
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-January/080447.html
<http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-January/080447.html>and
my patch is refused
On Sat, Feb 13, 2010 at 11:12 PM, Mans Rullgard <mans at mansr.com> wrote:
> ---
> 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);
> }
>
> --
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
More information about the ffmpeg-devel
mailing list