[MPlayer-dev-eng] [patch 02] Fix stream_ffmpeg read near EOF (was: mplayer fails to seek large file (>2G) over http due to misparsed Content-Length)

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Jan 22 20:31:43 CET 2010


On Fri, Jan 22, 2010 at 03:27:27AM +0300, Yuriy Kaminskiy wrote:
> Index: MPlayer-20100104+lavc-mt/stream/stream_ffmpeg.c
> ===================================================================
> --- MPlayer-20100104+lavc-mt.orig/stream/stream_ffmpeg.c	2010-01-20 19:57:02.000000000 +0300
> +++ MPlayer-20100104+lavc-mt/stream/stream_ffmpeg.c	2010-01-20 19:58:25.000000000 +0300
> @@ -31,7 +31,7 @@ static const struct m_struct_st stream_o
>  
>  static int fill_buffer(stream_t *s, char *buffer, int max_len)
>  {
> -    int r = url_read_complete(s->priv, buffer, max_len);
> +    int r = url_read(s->priv, buffer, max_len);
>      return (r <= 0) ? -1 : r;
>  }

I'll try to get this changed in FFmpeg if possible. MPlayer at least in
the past could behave rather badly if fill_buffer returns only very
little data, so url_read really should be tried more than once.



More information about the MPlayer-dev-eng mailing list