Quoting Martin Storsjö (2015-01-21 14:41:27)
> Since R/W AVIOContexts aren't fully supported (it only
> supports one single buffer, either for reading or writing),
> we open this with the read flag only, and keep doing all the writes
> directly to the underlying URLContext, bypassing the read buffer.
> ---
> This may potentially help utilize the underlying network better,
> by reading larger buffers from the socket at a time into the
> buffer, instead of consuming one single byte at a time (when
> reading rtsp reply headers).
> 
> I'm not sure if this actually does help significantly or not
> - testing of that is appreciated.
> ---

Hmm, I don't know about this. Using both layers simultaneously, when
they are not designed for it, sounds like it could be more fragile than
the current approach. So unless there are significant gains from it, I'd
probably say it's better not to do it.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to