summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-07 15:10:54 +0200
committerDudemanguy <random342@airmail.cc>2023-10-07 14:36:06 +0000
commit71ce0cb71f15f9e6ff7ed08b0b1637637c838451 (patch)
tree02745f9db8b76738d61a4432ad06f4853dd3602b
parentacac614032529997e0a8d89d35a8613b505e04fb (diff)
downloadmpv-71ce0cb71f15f9e6ff7ed08b0b1637637c838451.tar.bz2
mpv-71ce0cb71f15f9e6ff7ed08b0b1637637c838451.tar.xz
mp_image: don't copy crop value from opaque_ref
It is already set above. Fixes: #12577, #12587
-rw-r--r--video/mp_image.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index eb7daf7925..c3a6b50a78 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -1049,7 +1049,6 @@ struct mp_image *mp_image_from_av_frame(struct AVFrame *src)
// Might be incorrect if colorspace changes.
dst->params.color.light = p->color.light;
dst->params.alpha = p->alpha;
- dst->params.crop = p->crop;
}
sd = av_frame_get_side_data(src, AV_FRAME_DATA_DISPLAYMATRIX);