mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-24 09:23:37 +08:00
Fix VDPAU decoders, regression since f2f99f07.
This commit is contained in:
@@ -1161,7 +1161,8 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
|
|||||||
av_freep(&avctx->internal->hwaccel_priv_data);
|
av_freep(&avctx->internal->hwaccel_priv_data);
|
||||||
avctx->hwaccel = NULL;
|
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;
|
AVHWAccel *hwaccel;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user