Commit c67594a2 authored by Anton Khirnov's avatar Anton Khirnov

qsvdec_hevc: fix a variable name

hevcenc -> hevcdec, this is a _decoder_ plugin.
parent f62bb216
......@@ -88,7 +88,7 @@ static av_cold int qsv_decode_init(AVCodecContext *avctx)
int ret;
if (avctx->codec_id == AV_CODEC_ID_HEVC && s->load_plugin != LOAD_PLUGIN_NONE) {
static const char *uid_hevcenc_sw = "15dd936825ad475ea34e35f3f54217a6";
static const char *uid_hevcdec_sw = "15dd936825ad475ea34e35f3f54217a6";
if (s->qsv.load_plugins[0]) {
av_log(avctx, AV_LOG_WARNING,
......@@ -96,7 +96,7 @@ static av_cold int qsv_decode_init(AVCodecContext *avctx)
"The load_plugin value will be ignored.\n");
} else {
av_freep(&s->qsv.load_plugins);
s->qsv.load_plugins = av_strdup(uid_hevcenc_sw);
s->qsv.load_plugins = av_strdup(uid_hevcdec_sw);
if (!s->qsv.load_plugins)
return AVERROR(ENOMEM);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment