i want to build an app with ENABLE_VDEC options for using video file
after i install the libraries, i build an app
and then i got this error.
i search it on google, other people say that it is libavcodec-dev version problem.
but i already have installed the newest one
/workspace/workspace/tflite_gles_app/common/util_video_decode.c: In function 'open_video_file':
/workspace/workspace/tflite_gles_app/common/util_video_decode.c:84:5: warning: implicit declaration of function 'avcodec_parameters_to_context' [-Wimplicit-function-declaration]
avcodec_parameters_to_context (dec_ctx, fmt_ctx->streams[video_stream_index]->codecpar);
^
/workspace/workspace/tflite_gles_app/common/util_video_decode.c:84:81: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar'
avcodec_parameters_to_context (dec_ctx, fmt_ctx->streams[video_stream_index]->codecpar);
^
/workspace/workspace/tflite_gles_app/common/util_video_decode.c: In function 'decode_thread_main':
/workspace/workspace/tflite_gles_app/common/util_video_decode.c:287:23: warning: implicit declaration of function 'avcodec_send_packet' [-Wimplicit-function-declaration]
ret = avcodec_send_packet (s_dec_ctx, &packet);
^
/workspace/workspace/tflite_gles_app/common/util_video_decode.c:296:27: warning: implicit declaration of function 'avcodec_receive_frame' [-Wimplicit-function-declaration]
ret = avcodec_receive_frame (s_dec_ctx, frame);
^
../Makefile.include:16: recipe for target '/workspace/workspace/tflite_gles_app/common/util_video_decode.o' failed
make: [/workspace/workspace/tflite_gles_app/common/util_video_decode.o] Error 1
make: Waiting for unfinished jobs....
i want to build an app with ENABLE_VDEC options for using video file
after i install the libraries, i build an app
and then i got this error.
i search it on google, other people say that it is libavcodec-dev version problem.
but i already have installed the newest one
installed the library version is..
plz help me, if you guys have enough time... how can i figure out it?
-- env ubuntu 16.04 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609