mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-29 03:26:39 +08:00
register avcodec in AVDecoder
This commit is contained in:
@@ -26,6 +26,15 @@
|
||||
namespace QtAV {
|
||||
AVDecoder::AVDecoder()
|
||||
{
|
||||
class AVInitializer {
|
||||
public:
|
||||
AVInitializer() {
|
||||
qDebug("avcodec_register_all");
|
||||
avcodec_register_all();
|
||||
}
|
||||
};
|
||||
static AVInitializer sAVInit;
|
||||
Q_UNUSED(sAVInit);
|
||||
}
|
||||
|
||||
AVDecoder::AVDecoder(AVDecoderPrivate &d)
|
||||
|
||||
Reference in New Issue
Block a user