shithub: treason

Download patch

ref: 406a0c2b09277c1332b125afcba293a171a8b197
parent: a49c29951de073991572768848437169f13104f4
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Dec 29 20:41:15 EST 2020

h264: fix crop

--- a/decoder_h264.c
+++ b/decoder_h264.c
@@ -239,8 +239,8 @@
 
 		f->crop.left = a->ctx.sFrameCrop.iLeftOffset;
 		f->crop.top = a->ctx.sFrameCrop.iTopOffset;
-		f->crop.right = a->ctx.sFrameCrop.iRightOffset;
-		f->crop.bottom = a->ctx.sFrameCrop.iBottomOffset;
+		f->crop.right = w - a->ctx.sFrameCrop.iRightOffset;
+		f->crop.bottom = h - a->ctx.sFrameCrop.iBottomOffset;
 		f->dt = (sf.timestamp - lasttimestamp) * d->timebase * 1000000000ULL;
 		lasttimestamp = sf.timestamp;