After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759443 - videoframe-audiolevel: Fix possible division by zero
videoframe-audiolevel: Fix possible division by zero
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal normal
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-14 11:47 UTC by Vivia Nikolaidou
Modified: 2015-12-14 11:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First version of patch (1.27 KB, patch)
2015-12-14 11:48 UTC, Vivia Nikolaidou
committed Details | Review

Description Vivia Nikolaidou 2015-12-14 11:47:30 UTC
In update_rms_from_buffer(), division by "frames" wasn't checking whether "frames" is zero.
Comment 1 Vivia Nikolaidou 2015-12-14 11:48:13 UTC
Created attachment 317350 [details] [review]
First version of patch
Comment 2 Sebastian Dröge (slomo) 2015-12-14 11:56:21 UTC
commit dc9cf44697c0a89d4a8b10118bcdadc912c01325
Author: Vivia Nikolaidou <vivia@ahiru.eu>
Date:   Mon Dec 14 13:43:10 2015 +0200

    videoframe-audiolevel: Fix possible division by zero
    
    In update_rms_from_buffer(), division by "frames" wasn't checking whether
    "frames" is zero.
    
    CID 1341519.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759443