projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f55b11
)
Check ff_init_me()s return value.
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 1 Sep 2008 00:28:51 +0000
(
00:28
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 1 Sep 2008 00:28:51 +0000
(
00:28
+0000)
Originally committed as revision 15137 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo_enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo_enc.c
b/libavcodec/mpegvideo_enc.c
index
f7600be
..
5f18818
100644
(file)
--- 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){