[Bug 785948] audioencoder: Integer overflows in timestamp/granulepos calculation code on discont

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 9 07:39:05 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=785948

Mark Nauwelaerts <mnauw at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Mark Nauwelaerts <mnauw at users.sourceforge.net> ---
commit 00fa39befae4076277c9a046f72c9fe8a4275048
Author: Mark Nauwelaerts <mnauw at users.sourceforge.net>
Date:   Tue Aug 8 20:35:25 2017 +0200

    audioencoder: also adjust sample count upon discont to avoid ts overflow

    Only adjusting the base_ts might lead to a negative ts and as such integer
    overflow into a huge timestamp which then propagates into the granulepos
    and so on.  Instead, resync to incoming buffer timestamp using both base_ts
    and sample count rather than only base_ts.

    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=785948

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list