我将尝试在Ubuntu14.04.2下编译,并得到以下错误:
VideoPlayerPipHd.c: In static member function ‘static void reel::VideoPlayerPipHd::Create()’:
VideoPlayerPipHd.c:792:6: error: ‘avcodec_init’ was not declared in this scope
avcodec_init -> avcodec_register_all;
^
VideoPlayerPipHd.c:793:7: error: ‘av_open_input_file’ was not declared in this scope
av_open_input_file -> avformat_open_input;
^守则是:
787 void VideoPlayerPipHd::Create()
788 {
789 if (!instance_)
790 {
791 instance_ = new VideoPlayerPipHd;
792 avcodec_init();
793 avcodec_register_all();
794 }
795 }我试过几件事,但我被困住了。有人能帮帮我吗?提前感谢
发布于 2015-05-10 11:34:30
答案是,ffmpeg函数被废弃了。参见这里的列表,例如:https://www.ffmpeg.org/doxygen/0.8/deprecated.html
例如,将av_open_input_file更改为avformat_open_input。
https://stackoverflow.com/questions/29877478
复制相似问题