$OpenBSD: patch-import_import_ffmpeg_c,v 1.3 2013/01/19 08:42:35 brad Exp $
--- import/import_ffmpeg.c.orig	Sat Nov 19 11:50:27 2011
+++ import/import_ffmpeg.c	Fri Jan 18 22:02:05 2013
@@ -225,6 +225,7 @@ MOD_open {
   int extra_data_size = 0;
   long sret;
   int ret;
+  AVDictionary *opts = NULL;
 
   if (param->flag == TC_VIDEO) {
 
@@ -311,11 +312,7 @@ do_avi:
     lavc_dec_context->height = y_dim;
 
     if (vob->decolor) lavc_dec_context->flags |= CODEC_FLAG_GRAY;
-#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
-    lavc_dec_context->error_resilience  = 2;
-#else
-    lavc_dec_context->error_recognition = 2;
-#endif
+    av_dict_set(&opts, "err_detect", "compliant", 0);
     lavc_dec_context->error_concealment = 3;
     lavc_dec_context->workaround_bugs = FF_BUG_AUTODETECT;
     lavc_dec_context->codec_tag= (fourCC[0]<<24) | (fourCC[1]<<16) |
@@ -344,7 +341,7 @@ do_avi:
     }
 
     TC_LOCK_LIBAVCODEC;
-    ret = avcodec_open(lavc_dec_context, lavc_dec_codec);
+    ret = avcodec_open2(lavc_dec_context, lavc_dec_codec, &opts);
     TC_UNLOCK_LIBAVCODEC;
     if (ret < 0) {
       tc_log_warn(MOD_NAME, "Could not initialize the '%s' codec.",
