OpenVisualCloud / SVT-HEVC

SVT HEVC encoder. Scalable Video Technology (SVT) is a software-based video coding technology that is highly optimized for Intel® Xeon® processors. Using the open source SVT-HEVC encoder, it is possible to spread video encoding processing across multiple Intel® Xeon® processors to achieve a real advantage of processing efficiency.
Other
507 stars 169 forks source link

Fix a divide by zero issue #604

Closed tianjunwork closed 3 years ago

tianjunwork commented 3 years ago

Signed-off-by: Jun Tian jun.tian@intel.com

Description

With command line in #602, behavior is different between gcc-10 and 8. gcc-10 gives floating point exception for divide by zero. gcc-8 simply returns 0. This PR fixes the exception when code is compiled with gcc-10.

Issue

602

Author(s)

@tianjunwork

Performance impact

Merge method

intelmark commented 3 years ago

Looks safe and appropriate to fix a divide by zero error.

1480c1 commented 3 years ago

Please use

Fixes #602

under the issue line to make sure it properly auto-closes the issue, unless it doesn't fully close the issue

tianjunwork commented 3 years ago

Thanks Chris. I didn't add auto-close since the issue includes other topics still in discussion.