[libav-bugs] [Bug 691] New: Visual Studio build of 9.13 fails on sgidec.c

bugzilla at libav.org bugzilla at libav.org
Mon May 26 03:28:01 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=691

           Summary: Visual Studio build of 9.13 fails on sgidec.c
           Product: Libav
           Version: 9
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: chuck at burfoots.com


Running with Visual Studio 10 (specifically) which is using the c99toc89 tool (
c99conv.exe and c99wrap.exe) there is a build error 

sgidec.c
Assertion failed:
index_is_unique(&struct_array_lists[rec.parent->data.sal_idx],
 sai->index), file convert.c, line 1597
make: *** [libavcodec/sgidec.o] Error 1

Examination indicates that the param changed from * outend to int len:

Code is 

        if (pixelstride * (count - 1) >= out_end) {

Code should be 
        if ( pixelstring * (count - 1) >= len ) {

Additionally is the .init member correct. Had to remove the 
sgi_decode_init static call and the .init ref. Then it compiled fine

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list