[FFmpeg-devel] [RFC][PATCH] av_fifo_write_from_bytestream()

Björn Axelsson bjorn.axelsson
Thu Apr 3 12:14:36 CEST 2008


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
If that is ok, feel free to review the patch. If not, please advice on a
better solution (and skip the detailed reviewing for now).

The suboptimal workaround as long as this function is missing is to
first read data from the ByteIOContext into a temporary buffer and then
write from that buffer into the fifo. 

-- 
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_write_from_bytestream.diff
Type: text/x-patch
Size: 1752 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080403/3529b1c5/attachment.bin>



More information about the ffmpeg-devel mailing list