Quoting Soft Works (2021-11-25 03:41:32) > @@ -687,6 +720,11 @@ int av_hwdevice_ctx_create_derived_opts(AVBufferRef > **dst_ref_ptr, > ret = AVERROR(ENOMEM); > goto fail; > } > + tmp_ctx->internal->derived_devices[type] = > av_buffer_ref(dst_ref); > + if (!tmp_ctx->internal->derived_devices[type]) { > + ret = AVERROR(ENOMEM); > + goto fail; > + }
This means that once you derive a device of a certain type, you can never truly close it without also killing the parent device. That strikes me as - potentially troublesome - a behavior change Also, I don't see it as completely obvious that all derivations should always return the same child instance. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".