Opened 17 years ago

Closed 17 years ago

#832 closed defect (fixed)

r9117 breaks compilation of indeo2.c

Reported by: mplayer-bugs@… Owned by: mans@…
Priority: normal Component: libavcodec
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

gcc 3.2 doesn't like the way the init_vlc macro introduced in r9117 interacts with the call in indeo2.c:

indeo2.c:202:1: directives may not be used inside a macro argument
indeo2.c:201:40: unterminated argument list invoking macro "init_vlc"
indeo2.c: In function `ir2_decode_init':
indeo2.c:203: `init_vlc' undeclared (first use in this function)
indeo2.c:203: (Each undeclared identifier is reported only once
indeo2.c:203: for each function it appears in.)
indeo2.c:203: parse error before ')' token
make[1]: * [indeo2.o] Error 1

The trivial fix is replacing the call to init_vls in indeo2.c to init_vla_sparse and adding the appropriate parameters like the macro would do.

Attachments (1)

patch.vlc (808 bytes ) - added by mplayer-bugs@… 17 years ago.
compile fix for indeo2.c/vlc_init

Download all attachments as: .zip

Change History (3)

by mplayer-bugs@…, 17 years ago

Attachment: patch.vlc added

compile fix for indeo2.c/vlc_init

comment:1 by mplayer-bugs@…, 17 years ago

comment:2 by mplayer-bugs@…, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in r9198.

Note: See TracTickets for help on using tickets.