You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/videotoolbox: prefer hw_frames_ctx/hw_device_ctx over hwaccel_context
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -1181,7 +1181,8 @@ int ff_videotoolbox_common_init(AVCodecContext *avctx)
|
||||
|
||||
vtctx->logctx = avctx;
|
||||
|
||||
if (avctx->hwaccel_context)
|
||||
if (!avctx->hw_frames_ctx && !avctx->hw_device_ctx &&
|
||||
avctx->hwaccel_context)
|
||||
return videotoolbox_start(avctx);
|
||||
|
||||
if (!avctx->hw_frames_ctx && !avctx->hw_device_ctx) {
|
||||
|
Reference in New Issue
Block a user