[FFmpeg-cvslog] r15137 - trunk/libavcodec/mpegvideo_enc.c

michael subversion
Mon Sep 1 02:28:51 CEST 2008


Author: michael
Date: Mon Sep  1 02:28:51 2008
New Revision: 15137

Log:
Check ff_init_me()s return value.


Modified:
   trunk/libavcodec/mpegvideo_enc.c

Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c	(original)
+++ trunk/libavcodec/mpegvideo_enc.c	Mon Sep  1 02:28:51 2008
@@ -2775,7 +2775,8 @@ static int encode_picture(MpegEncContext
         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){




More information about the ffmpeg-cvslog mailing list