Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#8125 closed defect (fixed)

unknown type name 'AMFContext1'

Reported by: Zeranoe Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


AMFContext1 is not defined in amfenc.h, but is references in amfenc.c.

When attemtping to build with AMF support I get:

src/libavcodec/amfenc.c:216:5: error: unknown type name 'AMFContext1'; did you mean 'AMFContext'?
  216 |     AMFContext1 *context1 = NULL;
      |     ^~~~~~~~~~~
      |     AMFContext
src/libavcodec/amfenc.c:315:32: error: implicit declaration of function 'IID_AMFContext1'; did you mean 'IID_AMFContext'? [-Werror=implicit-function-declaration]
  315 |                 AMFGuid guid = IID_AMFContext1();
      |                                ^~~~~~~~~~~~~~~
      |                                IID_AMFContext
src/libavcodec/amfenc.c:315:32: error: invalid initializer
src/libavcodec/amfenc.c:319:31: error: request for member 'pVtbl' in something not a structure or union
  319 |                 res = context1->pVtbl->InitVulkan(context1, NULL);
      |                               ^~
src/libavcodec/amfenc.c:320:25: error: request for member 'pVtbl' in something not a structure or union
  320 |                 context1->pVtbl->Release(context1);
      |                         ^~

This bug was introduced with f8ad2ddd7a51df5d6e768ba2a6f65ee64b94e29b.

Change History (3)

comment:1 by Hendrik, 5 years ago

You need AMF 1.4.9 or newer, it includes those new structures. Should update the configure requirements.

Last edited 5 years ago by Hendrik (previous) (diff)

comment:2 by Zeranoe, 5 years ago

Resolution: invalid
Status: newclosed

Closed, as updating to the git version of AMF resolved the issue.

comment:3 by Carl Eugen Hoyos, 5 years ago

Component: avcodecbuild system
Priority: importantnormal
Resolution: invalidfixed
Note: See TracTickets for help on using tickets.