ffmpeg_mediacodec_encoder icon indicating copy to clipboard operation
ffmpeg_mediacodec_encoder copied to clipboard

have some plant to support latest ffmpeg version?

Open dcboy opened this issue 3 years ago • 1 comments

have some plan to support latest ffmpeg version?

==== project is different struct as the latest ffmpeg version

dcboy avatar Dec 19 '21 02:12 dcboy

libavcodec/mediacodecenc.c:101:3: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
  av_init_packet(&s->buffered_pkt);
  ^
libavcodec/packet.h:502:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
./libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
libavcodec/mediacodecenc.c:105:14: error: implicit declaration of function 'ff_mediacodec_enc_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  if ((ret = ff_mediacodec_enc_init(avctx, s->ctx, codec_mime, format, s->profile)) < 0)
             ^
libavcodec/mediacodecenc.c:105:14: note: did you mean 'ff_mediacodec_dec_init'?
libavcodec/mediacodecdec_common.h:75:5: note: 'ff_mediacodec_dec_init' declared here
int ff_mediacodec_dec_init(AVCodecContext *avctx,
    ^
libavcodec/mediacodecenc.c:141:9: error: implicit declaration of function 'ff_mediacodec_enc_send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  ret = ff_mediacodec_enc_send(avctx, s->ctx, frame, &s->buffered_pkt);
        ^
CC	libavcodec/midivid.o
libavcodec/mediacodecenc.c:141:9: note: did you mean 'ff_mediacodec_dec_send'?
libavcodec/mediacodecdec_common.h:80:5: note: 'ff_mediacodec_dec_send' declared here
int ff_mediacodec_dec_send(AVCodecContext *avctx,
    ^
libavcodec/mediacodecenc.c:154:10: error: implicit declaration of function 'ff_mediacodec_enc_receive' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  return ff_mediacodec_enc_receive(avctx, s->ctx, avpkt);
         ^
libavcodec/mediacodecenc.c:154:10: note: did you mean 'ff_mediacodec_dec_receive'?
libavcodec/mediacodecdec_common.h:85:5: note: 'ff_mediacodec_dec_receive' declared here
int ff_mediacodec_dec_receive(AVCodecContext *avctx,
    ^
libavcodec/mediacodecenc.c:193:6: error: field designator 'send_frame' does not refer to any field in type 'AVCodec' (aka 'struct AVCodec')
    .send_frame = mediacodec_send_frame,
     ^
1 warning and 4 errors generated.
make: *** [ffbuild/common.mak:70: libavcodec/mediacodecenc.o] Error 1
make: *** Waiting for unfinished jobs....

dcboy avatar Dec 19 '21 07:12 dcboy