mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/vaapi_hevc: Loose the restricts for SCC decoding
Allow current picture as the reference picture. Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com> Signed-off-by: Fei Wang <fei.w.wang@intel.com>
This commit is contained in:
parent
b7104243ff
commit
6489e0679d
|
@ -104,7 +104,8 @@ static void fill_vaapi_reference_frames(const HEVCContext *h, VAPictureParameter
|
|||
const HEVCFrame *frame = NULL;
|
||||
|
||||
while (!frame && j < FF_ARRAY_ELEMS(h->DPB)) {
|
||||
if (&h->DPB[j] != current_picture && (h->DPB[j].flags & (HEVC_FRAME_FLAG_LONG_REF | HEVC_FRAME_FLAG_SHORT_REF)))
|
||||
if ((&h->DPB[j] != current_picture || h->ps.pps->pps_curr_pic_ref_enabled_flag) &&
|
||||
(h->DPB[j].flags & (HEVC_FRAME_FLAG_LONG_REF | HEVC_FRAME_FLAG_SHORT_REF)))
|
||||
frame = &h->DPB[j];
|
||||
j++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue