QtAV
QtAV copied to clipboard
Deprecated API error
if (!avt.createAudioEncoder()) {
qWarning("Failed to create audio encoder");
return 1;
}
There will be a problem if we build with the latest ffmpeg for using the deprecated api in the file AudioEncoderFFmpeg.cpp. The line number is 207.
int ret = avcodec_encode_audio2(d.avctx, &pkt, f, &got_packet);
the latest source file saying:
here is the debug issue
Originally posted by @MingqianYang in https://github.com/wang-bin/QtAV/issues/1338#issuecomment-751191567
patches are welcome
patches
What do you mean patches? Could you be more specific? And it says
[FFmpeg:?] Error avcodec_open2(avctx, codec, &dict) @72 D:\CODE\QtAV-master\src\codec\audio\AudioEncoderFFmpeg.cpp: (0xffffffea) Invalid argument
[FFmpeg:NULL] No codec provided to avcodec_open2()
What do you mean patches?
He means if you know how to fix it, you could fix it yourself and make a pull request.