ffmpeg4新版本和老版本函數對照表

可以參考文檔doc/APIchanges文檔按新版本修改
一.編碼部分
有些接口參數可能發生變化注意修改(一般爲NULL)

  1. guess_format —> av_guess_format
  2. av_alloc_format_context —>avformat_alloc_context
  3. av_new_stream —> avformat_new_stream
  4. av_set_parameters —> avformat_open_input
  5. dump_format —> av_dump_format
  6. avcodec_open —> avcodec_open2
  7. avcodec_alloc_frame —> av_frame_alloc
  8. url_fopen —> avio_open
  9. url_fclose —> avio_close
  10. av_write_header —> avformat_write_header
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章