[Bug 779058] New: caps: simplify creates invalid caps with sets or ranges, intersect fails even more on them

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Feb 22 10:37:01 UTC 2017


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

            Bug ID: 779058
           Summary: caps: simplify creates invalid caps with sets or
                    ranges, intersect fails even more on them
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: slomo at coaxion.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

intersect() of sets of ranges is broken:

"video/x-h264, framerate=(fraction){ [ 5/1, 240/1 ], [ 3/1, 5/1 ] }"

intersected with itself gives

"video/x-h264, framerate=(fraction){ [ 5/1, 240/1 ], 5/1, { 5/1, [ 3/1, 5/1 ] }
}"


There should not be ranges inside sets to begin with, but the intersection
result is even worse than that. It's of a different type than the input, and
the set contains elements of different types.


And these sets of ranges are caused by simplify():

"video/x-raw, framerate=(fraction) [3/1, 30/1]; video/x-raw,
framerate=(fraction) [3/1, 120/1]"

gives simplified

"video/x-raw, framerate=(fraction){ [ 30/1, 60/1 ], [ 3/1, 30/1 ], [ 60/1,
120/1 ] }"

-- 
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