編譯xcb時出現的錯誤:
configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met:
No package 'pthread-stubs' found
No package 'xau' found
解決辦法:
sudo apt install libxau-dev libpthread-stubs0-dev
編譯xcb時出現的錯誤:
configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met:
No package 'pthread-stubs' found
No package 'xau' found
解決辦法:
sudo apt install libxau-dev libpthread-stubs0-dev
所以avcodec_receive_frame之後,要判斷AVFrame中是否有數據。 異步、同步各有好處。
開始懷疑是參數問題,後來反覆調整,都沒有解決。再後來,看到別人提示,重新編譯了一次,就沒有這個錯誤了。