mpegvideo: Do not error out on default values of thread_count.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/3/head
Michael Niedermayer 13 years ago
parent 4478e9d8db
commit ca0350f49b
  1. 4
      libavcodec/mpegvideo_enc.c

@ -580,10 +580,10 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
}
if (s->avctx->thread_count < 1) {
av_log(avctx, AV_LOG_ERROR,
av_log(avctx, AV_LOG_INFO,
"automatic thread number detection not supported by codec, "
"patch welcome\n");
return -1;
s->avctx->thread_count = 1;
}
if (s->avctx->thread_count > 1)

Loading…
Cancel
Save