[FFmpeg-cvslog] r19809 - trunk/libavcodec/mpegvideo_enc.c
michael
subversion
Thu Sep 10 16:12:05 CEST 2009
Author: michael
Date: Thu Sep 10 16:12:05 2009
New Revision: 19809
Log:
Check for thread_count==0.
fixed issue1333
Modified:
trunk/libavcodec/mpegvideo_enc.c
Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c Thu Sep 10 14:23:45 2009 (r19808)
+++ trunk/libavcodec/mpegvideo_enc.c Thu Sep 10 16:12:05 2009 (r19809)
@@ -441,6 +441,11 @@ av_cold int MPV_encode_init(AVCodecConte
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;
More information about the ffmpeg-cvslog
mailing list