mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
avformat/imfdec: inherit opaque from parent AVFormatContext
io_open and io_close2 callbacks may use opaque pointer stored in the context. They are already inherited, so opaque should also be passed through. Fixes IMF playback in mpv. Signed-off-by: Kacper Michajłow <kasper93@gmail.com> Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
622a72b5ea
commit
9c6c653a46
@ -380,6 +380,7 @@ static int open_track_resource_context(AVFormatContext *s,
|
||||
|
||||
track_resource->ctx->io_open = s->io_open;
|
||||
track_resource->ctx->io_close2 = s->io_close2;
|
||||
track_resource->ctx->opaque = s->opaque;
|
||||
track_resource->ctx->flags |= s->flags & ~AVFMT_FLAG_CUSTOM_IO;
|
||||
|
||||
if ((ret = ff_copy_whiteblacklists(track_resource->ctx, s)) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user