avcodec/vdpau: fix render2() check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/87/head
Michael Niedermayer 10 years ago
parent 403133ab5e
commit 0e57c05118
  1. 2
      libavcodec/vdpau.c

@ -237,7 +237,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if (!hwctx->render) {
if (!hwctx->render && hwctx->render2) {
status = hwctx->render2(avctx, frame, (void *)&pic_ctx->info,
pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers);
} else

Loading…
Cancel
Save