diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-01 00:28:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-01 00:28:51 +0000 |
commit | 719f37026a42bb848aa329dd4a6e5962ce336851 (patch) | |
tree | 03c50271050eafc4a5fa62ba43d668ee7802b670 /libavcodec/mpegvideo_enc.c | |
parent | 6f55b11ec6da84a895a4cd15406e9cdbcc984e52 (diff) | |
download | ffmpeg-719f37026a42bb848aa329dd4a6e5962ce336851.tar.gz |
Check ff_init_me()s return value.
Originally committed as revision 15137 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index f7600beb3c..5f18818301 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -2775,7 +2775,8 @@ static int encode_picture(MpegEncContext *s, int picture_number) 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){ |