summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--command/decoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/command/decoder.cpp b/command/decoder.cpp
index 6530ea0..e35961e 100644
--- a/command/decoder.cpp
+++ b/command/decoder.cpp
@@ -103,7 +103,9 @@ fail:
cMarkAdDecoder::cMarkAdDecoder(bool useH264, int Threads)
{
+#if LIBAVCODEC_VERSION_INT < ((53<<16)+(7<<8)+1)
avcodec_init();
+#endif
avcodec_register_all();
last_qscale_table=NULL;