Zebediah Figura : winegstreamer: Use the image size provided by GStreamer.
Alexandre Julliard
julliard at winehq.org
Mon Mar 16 16:49:07 CDT 2020
Module: wine
Branch: master
Commit: 8575484f2192d5394903f3362601f4131bd7f25c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8575484f2192d5394903f3362601f4131bd7f25c
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon Mar 16 14:40:16 2020 -0500
winegstreamer: Use the image size provided by GStreamer.
If the stride is not equal to the width, this calculation will be invalid.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index a8b1098752..9d7f85b82d 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -243,7 +243,7 @@ static gboolean amt_from_gst_video_info(const GstVideoInfo *info, AM_MEDIA_TYPE
}
bih->biCompression = amt->subtype.Data1;
}
- bih->biSizeImage = width * height * bih->biBitCount / 8;
+ bih->biSizeImage = GST_VIDEO_INFO_SIZE(info);
if ((vih->AvgTimePerFrame = (REFERENCE_TIME)MulDiv(10000000,
GST_VIDEO_INFO_FPS_D(info), GST_VIDEO_INFO_FPS_N(info))) == -1)
vih->AvgTimePerFrame = 0; /* zero division or integer overflow */
More information about the wine-cvs
mailing list