ref: f1c5aa839121a308b5f4e8dd285b2054599309a3
parent: 0327c47b5ad83cd2a62a988435a9cae8fac2b78d
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Jan 6 06:07:18 EST 2021
vpx: fix wrong width/height used when calling newframe (fixes crashes on some videos)
--- a/decoder_vpx.c
+++ b/decoder_vpx.c
@@ -53,7 +53,7 @@
break;
}
- if((f = newframe(im->w, im->h, im->planes, im->stride[0], im->stride[1])) != nil){
+ if((f = newframe(im->d_w, im->d_h, im->planes, im->stride[0], im->stride[1])) != nil){
f->crop.left = 0;
f->crop.top = 0;
f->crop.right = im->d_w;