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

Michael Niedermayer michaelni
Wed Apr 22 15:22:04 CEST 2009

On Wed, Apr 22, 2009 at 09:34:33AM +0200, Luca Abeni wrote:
> Hi Michael,
> Michael Niedermayer wrote:
> [...]
>> I belive it would be very difficult for the rtp code to know without
>> interaction from the asf demuxer how much data it might want.
>> There seem 2 variants and i belive both should be implemented because
>> they are both usefull in different circumstances.
>> The first is that the rtp code should provide a fully functional
>> ByteIOContext, not one that has a EOF before the end of the file.
>> That means it must provide a read_packet() callback.
>> Such callback would of course block until the data has been received.
> Sorry for stepping in this discussion, but I see you are talking about
> RTP... ;-)
> I am probably going to say something very stupid (or something that has
> already been considered; I did not follow this whole thread), but...
> Why cannot read_packet() return EAGAIN?

it can, and that was half of my suggestion

> I mean, to me this situation looks very similar to reading an ASF file
> from a pipe opened in non-blocking mode... How does ffmpeg handle this
> situation?

id guess it would fail

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090422/892bb080/attachment.pgp>

More information about the ffmpeg-devel mailing list