When using more than one threads, the callback can be called from different thread from sibling avctx, we cannot use our main one to query codec/hw_frames paramters. Use context provided in callback arg to fix that.
When using more than one threads, the callback can be called from different thread from sibling avctx, we cannot use our main one to query codec/hw_frames paramters. Use context provided in callback arg to fix that.