BogdanovKirill / RtspClientSharp

Pure C# RTSP client for .NET Standard without external dependencies and with true async nature. I welcome contributions.
MIT License
706 stars 284 forks source link

RegionOfInterest in SimplePlayer doesn't work #86

Open raburton opened 4 years ago

raburton commented 4 years ago

Trying to scale with a region of interest set throws an exception. For some reason the code in FFmpegDecodedVideoScaler.cs multiplies the left/right/height/width by the height/width of the frame. https://github.com/BogdanovKirill/RtspClientSharp/blob/master/Examples/SimpleRtspPlayer/RawFramesDecoding/FFmpeg/FFmpegDecodedVideoScaler.cs#L48