diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 01:35:43 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 01:35:43 +0000 |
commit | dbedf2aae26c44d3d310831dd1097900d5a539d9 (patch) | |
tree | ab0c29c986a7b48fe8671a9997403237a666384a /ffmpeg.c | |
parent | 0b459fb2d8d84f90d02a755a875ae921b2871020 (diff) | |
download | ffmpeg-dbedf2aae26c44d3d310831dd1097900d5a539d9.tar.gz |
enable feeder threads
Originally committed as revision 13868 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -449,6 +449,11 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename) else if (st->codec->codec_type == CODEC_TYPE_VIDEO && video_stream_copy) st->stream_copy = 1; + if(!st->codec->thread_count) + st->codec->thread_count = 1; + if(st->codec->thread_count>1) + avcodec_thread_init(st->codec, st->codec->thread_count); + if(st->codec->flags & CODEC_FLAG_BITEXACT) nopts = 1; } |