ffmpeg deprecated 수정
av_opt_set() 으로 buffer_size 하려는데 안되길래 버전을 올리니.. 으헉?
1>cmdutils.obj : error LNK2001: _avcodec_default_release_buffer 외부 기호를 확인할 수 없습니다. 1>ffplaycore.obj : error LNK2001: _avcodec_alloc_frame 외부 기호를 확인할 수 없습니다. 1>ffplaycore.obj : error LNK2001: _avcodec_get_frame_defaults 외부 기호를 확인할 수 없습니다. 1>ffplaycore.obj : error LNK2001: _avcodec_free_frame 외부 기호를 확인할 수 없습니다. |
-void avcodec_free_frame(AVFrame **frame) -{ - av_frame_free(frame); -} |
[링크 : https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2015-September/093338.html]
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55, 45, 101) av_frame_alloc() #else avcodec_alloc_frame() #endif |
[링크 : https://www.bountysource.com/issues/6093496-replace-avcodec_alloc_frame-with-av_frame_alloc]
-void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic) -{ - av_frame_unref(pic); -} |
[링크 : https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2015-September/093320.html
The comment around the function declaration for avcodec_get_frame_defaults says that you should use av_frame_unref and the code seems to be doing just that: |
[링크 : http://stackoverflow.com/questions/27686064/ffmpeg-avcodec-get-frame-defaults-was-declared-deprecated
빌드는 어찌했는데 실행이 안되네 ㅠㅠ
dll 신버전 맞춰줘도 왜 안되니 ㅠㅠ