mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit 'e328178da90f44690e0076f4dbfd16da9175f441'
* commit 'e328178da90f44690e0076f4dbfd16da9175f441': qsvdec: only access hwaccel_context is the pixel format is QSV Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
aabe525734
|
@ -106,7 +106,7 @@ static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q)
|
|||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
if (avctx->hwaccel_context) {
|
||||
if (avctx->pix_fmt == AV_PIX_FMT_QSV && avctx->hwaccel_context) {
|
||||
AVQSVContext *user_ctx = avctx->hwaccel_context;
|
||||
session = user_ctx->session;
|
||||
iopattern = user_ctx->iopattern;
|
||||
|
|
Loading…
Reference in New Issue