mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/vdpau: fix render2() check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
403133ab5e
commit
0e57c05118
@ -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…
Reference in New Issue
Block a user