提交 844ce49d 编写于 作者: M Michael Niedermayer

10l

Originally committed as revision 3090 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 d1700ead
......@@ -597,7 +597,7 @@ int MPV_common_init(MpegEncContext *s)
{
int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y;
if(s->avctx->thread_count > MAX_THREADS || 16*s->avctx->thread_count > s->height){
if(s->avctx->thread_count > MAX_THREADS || (16*s->avctx->thread_count > s->height && s->height)){
av_log(s->avctx, AV_LOG_ERROR, "too many threads\n");
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册