$OpenBSD: patch-plugins_video_H_264_h264-x264_cxx,v 1.6 2013/03/21 07:50:56 landry 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	Wed Feb 20 03:18:02 2013
+++ plugins/video/H.264/h264-x264.cxx	Thu Mar 21 08:47:42 2013
@@ -36,15 +36,15 @@
  * $Date: 2013/03/21 07:50:56 $
  */
 
+#include "../common/ffmpeg.h"
+#include "../common/dyna.h"
+
 #ifndef PLUGIN_CODEC_DLL_EXPORTS
 #include "plugin-config.h"
 #endif
 
 #include <codec/opalplugin.hpp>
 
-#include "../common/ffmpeg.h"
-#include "../common/dyna.h"
-
 #include "shared/h264frame.h"
 #include "shared/x264wrap.h"
 
@@ -1071,13 +1071,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;
 
