Commit 114cacca authored by michael's avatar michael

Check ff_init_me()s return value.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15137 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0f13b175
...@@ -2775,7 +2775,8 @@ static int encode_picture(MpegEncContext *s, int picture_number) ...@@ -2775,7 +2775,8 @@ static int encode_picture(MpegEncContext *s, int picture_number)
ff_update_duplicate_context(s->thread_context[i], s); 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 */ /* Estimate motion for every MB */
if(s->pict_type != FF_I_TYPE){ if(s->pict_type != FF_I_TYPE){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment