Commit 3ea0d9c8 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix VDPAU decoders, regression since f2f99f07.

parent 154cee92
......@@ -1161,7 +1161,8 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
av_freep(&avctx->internal->hwaccel_priv_data);
avctx->hwaccel = NULL;
if (desc->flags & AV_PIX_FMT_FLAG_HWACCEL) {
if (desc->flags & AV_PIX_FMT_FLAG_HWACCEL &&
!(avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)) {
AVHWAccel *hwaccel;
int err;
......
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