winegstreamer: Don't set the source and target rects in amt_from_gst_caps_video().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
923a7808f4
commit
bf46266099
|
@ -262,11 +262,6 @@ static gboolean amt_from_gst_caps_video(const GstCaps *caps, AM_MEDIA_TYPE *amt)
|
||||||
bih->biSizeImage = width * height * bih->biBitCount / 8;
|
bih->biSizeImage = width * height * bih->biBitCount / 8;
|
||||||
if ((vih->AvgTimePerFrame = (REFERENCE_TIME)MulDiv(10000000, denom, nom)) == -1)
|
if ((vih->AvgTimePerFrame = (REFERENCE_TIME)MulDiv(10000000, denom, nom)) == -1)
|
||||||
vih->AvgTimePerFrame = 0; /* zero division or integer overflow */
|
vih->AvgTimePerFrame = 0; /* zero division or integer overflow */
|
||||||
vih->rcSource.left = 0;
|
|
||||||
vih->rcSource.right = width;
|
|
||||||
vih->rcSource.top = height;
|
|
||||||
vih->rcSource.bottom = 0;
|
|
||||||
vih->rcTarget = vih->rcSource;
|
|
||||||
bih->biSize = sizeof(*bih);
|
bih->biSize = sizeof(*bih);
|
||||||
bih->biWidth = width;
|
bih->biWidth = width;
|
||||||
bih->biHeight = height;
|
bih->biHeight = height;
|
||||||
|
|
Loading…
Reference in New Issue