[FFmpeg-devel] [PATCH] RTSP-MS 14/15: ASF packet parsing

Luca Abeni lucabe72
Fri Apr 17 21:44:47 CEST 2009


On Fri, 2009-04-17 at 15:23 -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Wed, Apr 15, 2009 at 9:24 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> > On Thu, Mar 26, 2009 at 4:16 PM, Luca Abeni <lucabe72 at email.it> wrote:
> >> But I do not think that the ff_rtp_merge_data_packet() function is ok. What
> >> is needed is a buffer where storing data until a frame is complete. And I
> >> suspect libavformat already provides this kind of functionality.
> >
> > Does anyone know if such a function exists in lavf or related?
> 
> Ping?

I still do not think that this ff_rtp_merge_data_packet() is ok.
Why not using (for example, maybe there are better solutions...) a
ByteIOContext? I mean, when you receive the first packet of a frame you
call url_open_dyn_buf(), then every time a packet arrives you call
put_buffer() to append the payload to the ByteIOContext. And when the
latest packet arrives (M = 1), you call url_close_dyn_buf() and you pass
the resulting buffer to the ASF demuxer.


				Luca




More information about the ffmpeg-devel mailing list