$OpenBSD: patch-plugins_video_H_264_h264-x264_cxx,v 1.8 2013/11/02 15:55:53 ajacoutot Exp $

LOCALBASE/include/libavutil/common.h:170: error: 'UINT64_C' was not declared in this scope,
so move headers so that __STDC_CONSTANT_MACROS is defined at the right time.

--- plugins/video/H.264/h264-x264.cxx.orig	Thu Aug 15 01:22:47 2013
+++ plugins/video/H.264/h264-x264.cxx	Sat Nov  2 16:28:49 2013
@@ -40,6 +40,9 @@
 #include "plugin-config.h"
 #endif
 
+#define FF_IDCT_H264 11
+#define CODEC_FLAG2_SKIP_RD 0x00004000
+
 #include <codec/opalplugin.hpp>
 
 #include "../common/ffmpeg.h"
@@ -1071,13 +1074,10 @@ class MyDecoder : public PluginCodec<MY_CODEC>
         return false;
 
       m_context->workaround_bugs = FF_BUG_AUTODETECT;
-      m_context->error_recognition = FF_ER_AGGRESSIVE;
       m_context->idct_algo = FF_IDCT_H264;
       m_context->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK;
       m_context->flags = CODEC_FLAG_INPUT_PRESERVED | CODEC_FLAG_EMU_EDGE;
-      m_context->flags2 = CODEC_FLAG2_BRDO |
-                          CODEC_FLAG2_MEMC_ONLY |
-                          CODEC_FLAG2_DROP_FRAME_TIMECODE |
+      m_context->flags2 = CODEC_FLAG2_DROP_FRAME_TIMECODE |
                           CODEC_FLAG2_SKIP_RD |
                           CODEC_FLAG2_CHUNKS;
 
