# HG changeset patch # User michael # Date 1252591925 0 # Node ID 30e57cd5d5f51355c0585cb67e37d2bbefb471d8 # Parent 8f578f86c51a9c3719da2186baa83185877e965f Check for thread_count==0. fixed issue1333 diff -r 8f578f86c51a -r 30e57cd5d5f5 mpegvideo_enc.c --- a/mpegvideo_enc.c Thu Sep 10 12:23:45 2009 +0000 +++ b/mpegvideo_enc.c Thu Sep 10 14:12:05 2009 +0000 @@ -441,6 +441,11 @@ return -1; } + if(s->avctx->thread_count < 1){ + av_log(avctx, AV_LOG_ERROR, "automatic thread number detection not supported by codec, patch welcome\n"); + return -1; + } + if(s->avctx->thread_count > 1) s->rtp_mode= 1;