mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/vdpau: fix assertion failure and < vs > error
Fixes Ticket4211 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
17dde95ec5
commit
c263102298
@ -288,9 +288,8 @@ int ff_vdpau_common_end_frame(AVCodecContext *avctx, AVFrame *frame,
|
||||
|
||||
#if FF_API_BUFS_VDPAU
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
av_assert0(sizeof(hwctx->info) >= sizeof(pic_ctx->info));
|
||||
memset(&hwctx->info, 0, sizeof(hwctx->info));
|
||||
memcpy(&hwctx->info, &pic_ctx->info, sizeof(pic_ctx->info));
|
||||
av_assert0(sizeof(hwctx->info) <= sizeof(pic_ctx->info));
|
||||
memcpy(&hwctx->info, &pic_ctx->info, sizeof(hwctx->info));
|
||||
hwctx->bitstream_buffers = pic_ctx->bitstream_buffers;
|
||||
hwctx->bitstream_buffers_used = pic_ctx->bitstream_buffers_used;
|
||||
hwctx->bitstream_buffers_allocated = pic_ctx->bitstream_buffers_allocated;
|
||||
|
Loading…
Reference in New Issue
Block a user