Browse Source

Fix VDPAU decoders, regression since f2f99f07.

tags/n2.3
Carl Eugen Hoyos 11 years ago
parent
commit
3ea0d9c8a5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/utils.c

+ 2
- 1
libavcodec/utils.c View File

@@ -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;



Loading…
Cancel
Save