[FFmpeg-devel] [FFmpeg-cvslog] Merge commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d'
Derek Buitenhuis
derek.buitenhuis at gmail.com
Wed May 4 22:58:02 CEST 2016
On 5/4/2016 9:52 PM, wm4 wrote:
> This was never allowed and was never public API. Use custom I/O instead
> (creating an avio context with your own read/write callbacks).
Yes, I was thinking something akin to:
int my_open(...)
{
if (filename_has_prefix("myownproto://")) {
ctx->opaque = myOwnContext;
return my_own_open(...);
}
return avio_open(...);
}
int my_read(...)
{
if (ctx->opaque != NULL)
return my_own_code(...);
return avio_read(...);
}
Maybe this should be documented somewhere concretely as a Way To Do Things.
- Derek
More information about the ffmpeg-devel
mailing list