diff mpegvideo_enc.c @ 7767:f692318902dc libavcodec

Check ff_init_me()s return value.
author michael
date Mon, 01 Sep 2008 00:28:51 +0000
parents b8ad314749ff
children 635ed2559262
line wrap: on
line diff
--- a/mpegvideo_enc.c	Mon Sep 01 00:22:00 2008 +0000
+++ b/mpegvideo_enc.c	Mon Sep 01 00:28:51 2008 +0000
@@ -2775,7 +2775,8 @@
         ff_update_duplicate_context(s->thread_context[i], s);
     }
 
-    ff_init_me(s);
+    if(ff_init_me(s)<0)
+        return -1;
 
     /* Estimate motion for every MB */
     if(s->pict_type != FF_I_TYPE){