RenderHeads / UnityPlugin-AVProLiveCamera

AVPro Live Camera is a Unity plugin for webcams, TV cards and capture cards
https://renderheads.com/products/avpro-live-camera/
11 stars 0 forks source link

can't get the closest mode when the aspect is the same #48

Closed GodZza closed 1 year ago

GodZza commented 1 year ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the bug call the AVProLiveCameraDevice.GetClosestMode function, cannot get the closest mode.

Your Setup (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Go to 'AVProLiveCameraDevice.GetClosestMode' script . at line:734 (after =>// If we haven't found an exact match, find by closest area)
  2. the code is 'float aspect = (float)width * (float)height;' in the project. but 'float aspect=(float)width / (float)height;' is correct.

Logs

Screenshots

Videos

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 1 year ago

We are looking into fixing this, thanks

RichRH commented 1 year ago

Hi @GodZza,

Thanks for reporting this - fixed in the next release.

Cheers,