diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-09-10 14:12:05 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-09-10 14:12:05 +0000 |
commit | b52b0913c25c95dcf2aa09764d18477e1421b286 (patch) | |
tree | f159c98b5bf176392d4c46696c7fc0a40ea0733b /libavcodec/mpegvideo_enc.c | |
parent | 19a9a49e84332d7f051edb83ee4bc3afc36d80ed (diff) | |
download | ffmpeg-b52b0913c25c95dcf2aa09764d18477e1421b286.tar.gz |
Check for thread_count==0.
fixed issue1333
Originally committed as revision 19809 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 9036588ee4..6e7837ad01 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -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; |