Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-09-10 18:12:05 +0400
committerMichael Niedermayer <michaelni@gmx.at>2009-09-10 18:12:05 +0400
commitb52b0913c25c95dcf2aa09764d18477e1421b286 (patch)
treef159c98b5bf176392d4c46696c7fc0a40ea0733b /libavcodec/mpegvideo_enc.c
parent19a9a49e84332d7f051edb83ee4bc3afc36d80ed (diff)
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.c5
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;