changeset 1991:fa09319b80af libavcodec

10l
author michael
date Fri, 30 Apr 2004 01:35:45 +0000
parents 11991f81afd6
children 938e47c809b0
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Thu Apr 29 23:20:46 2004 +0000
+++ b/mpegvideo.c	Fri Apr 30 01:35:45 2004 +0000
@@ -597,7 +597,7 @@
 {
     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;
     }