Browse Source

Check for thread_count==0.

fixed issue1333

Originally committed as revision 19809 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
b52b0913c2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/mpegvideo_enc.c

+ 5
- 0
libavcodec/mpegvideo_enc.c View File

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



Loading…
Cancel
Save