[FFmpeg-devel] [PATCH] RTSP-MS 14/15: ASF packet parsing
Ronald S. Bultje
rsbultje
Thu Apr 23 21:12:57 CEST 2009
Hi,
On Thu, Apr 23, 2009 at 3:06 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> 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
We're using a buffered I/O, so you could create a public
fill_buffer_for_at_least(pb, size) which does the obvious. After a
succesful call to this function, we would guarantee that the next size
bytes would be available without blocking.
One call to this function at the top of get_packet() where size =
HEADER_SIZE, and one in parse_packet() where size =
next_packet_data_size.
Ronald
More information about the ffmpeg-devel
mailing list