Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 14 years ago
parent
commit
ca0350f49b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/mpegvideo_enc.c

+ 2
- 2
libavcodec/mpegvideo_enc.c View File

@@ -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