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

Luca Abeni lucabe72
Thu Apr 23 22:23:01 CEST 2009

Hi Michael

Michael Niedermayer wrote:
>> I think Luca is suggesting I go fix that so that the demuxer works non-blocking.
> and my question was how?
> and dont say you write a test app ;)
> there are 17 get_byte, 3 get_buffer and 101 get_le* in asfdec.c
> each could fail with EAGAIN in case of a non blocking pipe

I warned you I was going to say something stupid ;-)
Anyway my idea was that when a demuxer sees EAGAIN it saves the partial 
frame/packet/whatever in a buffer and then propagates EAGAIN to the 
application. When the application calls read_frame() again, the demuxer 
tries to read again and then restart parsing the frame (using the 
partial buffer saved previously).

This is also what the RTP thing can do to interface with the ASF demuxer :)
Anyway it was just a random idea... Please ignore it if it does not make 


More information about the ffmpeg-devel mailing list