[FFmpeg-devel] [RFC][PATCH] av_fifo_write_from_bytestream()
Björn Axelsson
bjorn.axelsson
Thu Apr 3 13:41:23 CEST 2008
On Thu, 2008-04-03 at 13:06 +0200, Michael Niedermayer wrote:
> On Thu, Apr 03, 2008 at 12:14:36PM +0200, Bj?rn Axelsson wrote:
> > Hi list,
> > when changing the mms protocol over to use fifos I need a way to
> > efficiently read data from a ByteIOContext into an AVFifoBuffer.
> >
> > The attached patch adds such a function to fifo.(c|h) but also makes
> > those files depend on avformat.h
>
> rejected
> see av_fifo_generic_read()
Right you are, and blind I am...
The attached patch implements av_fifo_generic_write() modeled after
av_fifo_generic_read().
I'll send a separate patch for reimplementing av_fifo_write() using
av_fifo_generic_write() when (if) this is accepted.
I must note that I am a bit unhappy with the error handling of this
implementation, but it is consistent with the rest of the AVFifoBuffer
API.
--
Bj?rn Axelsson Phone: +46-(0)90-18 98 97
Intinor AB Fax: +46-(0)920-757 10
www.intinor.se
Interactive Television & Digital Media Distribution
-------------- next part --------------
A non-text attachment was scrubbed...
Name: av_fifo_generic_write.diff
Type: text/x-patch
Size: 1621 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080403/dafe450d/attachment.bin>
More information about the ffmpeg-devel
mailing list