[Bug 768735] New: motioncells: incorrect motion_cells_indices when the grid size is more than 10x10

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 12 14:08:28 UTC 2016


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

            Bug ID: 768735
           Summary: motioncells: incorrect motion_cells_indices when the
                    grid size is more than 10x10
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: dzhadinets at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

The problem is here 
https://github.com/GStreamer/gst-plugins-bad/blob/1.8.1/ext/opencv/MotionCells.cpp#L218

snprintf (tmpstr, MSGLEN, "%d:%d,", m_MotionCells.at (i).lineidx,
m_MotionCells.at (i).colidx);

MSGLEN = 6 
when a line and a column are more than 9 then  it will truncate last comma and
the the function  will prepare string like this 

Got message #1324 from element "motioncells0" (element): motion,
motion_cells_indices=(string)"2:15\,2:16\,2:17\,3:13\,3:14\,3:15\,3:16\,3:17\,3:18\,3:19\,3:20\,4:12\,4:13\,4:14\,4:15\,4:16\,4:17\,4:18\,4:19\,4:20\,4:21\,5:11\,5:12\,5:13\,5:14\,5:16\,5:18\,5:19\,5:20\,5:21\,5:22\,6:11\,6:12\,6:13\,6:14\,6:15\,6:16\,6:17\,6:18\,6:19\,6:20\,6:21\,6:22\,7:10\,7:11\,7:12\,7:13\,7:14\,7:15\,7:16\,7:17\,7:21\,7:22\,7:23\,8:10\,8:11\,8:12\,8:21\,8:22\,8:23\,9:10\,9:11\,9:21\,9:22\,9:23\,10:9\,10:1010:1110:2110:2210:2311:9\,11:1011:1111:1611:2111:2211:2312:9\,12:1012:1112:2112:2212:2313:9\,13:1013:1113:1813:1913:2113:2213:2314:8\,14:9\,14:1014:1114:1214:1314:1814:1914:2114:2214:2315:1015:1115:1215:1315:1515:1715:1815:1915:2015:2115:2215:2316:1016:1116:1216:1316:1416:1616:1816:1916:2016:2116:2216:2317:1017:1117:1217:1717:1817:1917:2017:2117:2217:2318:1118:1218:1718:1818:1918:2018:2218:2319:1119:1219:1619:1719:1819:1919:2019:2119:2219:2320:1120:1220:1620:1720:1820:1920:2020:2120:2220:2321:1121:1221:1321:1621:1821:1921:2021:2121:2221:2322:1222:1322:1
 622:1722:1822:1922:2022:2122:2222:2323:1223:1323:1523:1623:1823:1923:2023:2123:2223:2324:1224:1324:1424:1524:1924:2024:2124:2224:2324:2425:1325:1425:1925:2025:2125:2225:2325:2425:2525:2625:2725:2825:2925:3026:1226:1326:1426:1526:1926:2026:2126:2226:2326:2426:2626:2726:2826:2926:3026:3127:8\,27:9\,27:1027:1127:1327:1427:1527:1627:2027:2127:2227:3128:6\,28:7\,28:8\,28:9\,28:1028:1128:1328:1428:1528:1628:3129:5\,29:6\,29:7\,29:8\,29:1129:1529:1629:1829:3130:5\,30:6\,30:1530:1630:1830:1930:3131:4\,31:5\,31:1531:1631:1731:1831:19",
motion=(guint64)67370824533;

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