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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to