[FFmpeg-devel] [PATCH] libavdevice: JACK demuxer

Reimar Döffinger Reimar.Doeffinger
Sun Mar 8 00:04:15 CET 2009


On Sat, Mar 07, 2009 at 10:03:13PM +0100, Michael Niedermayer wrote:
> > id love to see libavutil/fifo extended to fix the 1 byte issue and 
> > whatever else is needed.
> 
> the 1 byte issue should be fixed
> can you confirm that this is enough for mplayer or is more needed?

Seems to work for ao_sdl as-is.
A somewhat more comfortable method to clear the buffer than
av_fifo_drain(&buffer, av_fifo_size(&buffer));
would be nice though, particularly if it did reset the state to
the one right after init (i.e. it will also start reading and writing
from the start of the buffer). Of course such a function would not be
"thread-safe" but a) it does not matter for MPlayer 2) above construct
as used in MPlayer would not be either.




More information about the ffmpeg-devel mailing list