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

Michael Niedermayer michaelni
Wed Apr 22 15:28:02 CEST 2009

On Tue, Apr 21, 2009 at 07:33:23PM +0200, Michael Niedermayer wrote:
> The second is that when no more data is available this
> state should be signaled to the demuxer (iam not sure if we have any
> means to do this yet) also iam not sure which way is the nicest to
> do this
> a url_fwouldblock() could be used, that is the asf demuxer could do
> if(url_fwouldblock(pb))
>     return AVERROR(EAGAIN);
> before reading the first byte of the next packet
> internally url_fwouldblock() would have to somehow figure out if the
> ByteIOContexts read_packet() would block or not, this may need adding
> a would_block() callback
> but iam less certain on how to design/implement all that ideally, thus
> comments welcome!

It might be possible to already do this with a
if(url_feof() && url_ferror() == AVERROR(EAGAIN))

If so thats of course preferable over making the api more complex

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- 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/69cb8eca/attachment.pgp>

More information about the ffmpeg-devel mailing list