avcodec/vdpau: fix render2() check
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Oct 2014 14:23:36 +0000 (16:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Oct 2014 14:23:36 +0000 (16:23 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vdpau.c

index ec7effb..a760988 100644 (file)
@@ -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