changeset 7767:f692318902dc libavcodec

Check ff_init_me()s return value.
author michael
date Mon, 01 Sep 2008 00:28:51 +0000
parents 10242bdaac34
children 152573e499c9
files mpegvideo_enc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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){