ffmpeg/libavcodec
Ruijing Dong 89e3814569 avcodec/av1_vaapi: fixed a decoding corruption issue
In av1_spec.pdf page 38/669, there is a sentence below:

if ( frame_type == KEY_FRAME && show_frame ) {
   for ( i = 0; i < NUM_REF_FRAMES; i++) {
      RefValid[ i ] = 0
      ......
   }
   ......
}

This shows that the condition of invalidating current
DPB frames should be the coming frame_type is KEY_FRAME plus
show_frame is equal to 1. Otherwise, some of the frames
in sequence after KEY_FRAME still refer to the reference frames
before KEY_FRAME, and if these before KEY_FRAME reference
frames were invalidated, these frames could not find their
reference frames, and it could cause image corruption.

Mesa fix is in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19386

Reviewed-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
2022-11-04 09:51:37 +08:00
..
2022-10-24 00:46:56 +02:00
2022-10-17 09:56:47 +02:00
2022-10-05 08:26:19 +02:00
2022-10-05 08:26:19 +02:00
2022-10-22 17:28:01 +02:00
2022-10-18 13:20:37 +11:00
2022-10-18 13:20:37 +11:00
2022-10-20 06:57:30 +02:00
2022-10-24 00:46:58 +02:00
2022-09-30 19:11:36 +02:00
2022-10-08 10:19:30 +02:00
2022-10-27 13:17:07 +03:00
2022-10-02 20:27:36 +02:00
2022-10-14 16:14:24 +02:00
2022-10-17 09:51:47 +02:00
2022-10-26 20:30:25 +11:00
2022-10-13 23:42:25 +02:00
2022-10-18 13:20:37 +11:00