You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vaapi_decode: Clear parameter buffers to fix picture reuse
When decoding interlaced pictures, the structure is reused to render to the same surface twice. The parameter buffers were not being cleared, which caused the i965 driver to error out.
This commit is contained in:
@@ -201,6 +201,7 @@ int ff_vaapi_decode_issue(AVCodecContext *avctx,
|
||||
AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS)
|
||||
ff_vaapi_decode_destroy_buffers(avctx, pic);
|
||||
|
||||
pic->nb_param_buffers = 0;
|
||||
pic->nb_slices = 0;
|
||||
pic->slices_allocated = 0;
|
||||
av_freep(&pic->slice_buffers);
|
||||
|
Reference in New Issue
Block a user