Commit 0e57c051 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vdpau: fix render2() check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 403133ab
......@@ -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
......
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