[FFmpeg-trac] #8125(avcodec:new): unknown type name 'AMFContext1'

FFmpeg trac at avcodec.org
Sun Sep 8 21:00:16 EEST 2019


#8125: unknown type name 'AMFContext1'
---------------------------------+--------------------------------------
             Reporter:  Zeranoe  |                     Type:  defect
               Status:  new      |                 Priority:  important
            Component:  avcodec  |                  Version:  git-master
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 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.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8125>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list