Commit b52b0913 authored by Michael Niedermayer's avatar Michael Niedermayer

Check for thread_count==0.

fixed issue1333

Originally committed as revision 19809 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 19a9a49e
......@@ -441,6 +441,11 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment