[FFmpeg-devel] [FFmpeg-cvslog] Merge commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d'
Thierry Foucu
tfoucu at gmail.com
Thu May 5 00:46:50 CEST 2016
On Wed, May 4, 2016 at 1:58 PM, Derek Buitenhuis <derek.buitenhuis at gmail.com
> wrote:
> 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).
>
>
Can i ask why it cannot be part of the public API?
It was really practical just to register new prefix, specially, when you
have to create X number of them.
I think this should be a feature. We allow to register filter, codec,
muxer/demuxer, why not URL
> 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.
>
Do you have an example how to do it? How to register my_open, my_read,
my_seek ?
>
> - Derek
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list