History

avcodec/d3d12va_vp9: fix vp9 max_num_refs value

Previous max_num_refs was based on pp.frame_refs plus 1 and it could possibly reaches the size limit. Actually it should be the size of pp.ref_frame_map plus 1.

Tong Wu committed 2 years ago

Commit d18ed2d1 parent 8b76bae1 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/d3d12va_vp9.c+1−1
@@ -148,7 +148,7 @@ static int d3d12va_vp9_decode_init(AVCodecContext *avctx) · 147 unmodified lines
148 break;148 break;
149 };149 };
150 150
151 ctx->max_num_ref = FF_ARRAY_ELEMS(pp.frame_refs) + 1;151 ctx->max_num_ref = FF_ARRAY_ELEMS(pp.ref_frame_map) + 1;
152 152
153 return ff_d3d12va_decode_init(avctx);153 return ff_d3d12va_decode_init(avctx);
154}154}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t