mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Remove superfluous HAVE_THREADS #ifdef.
patch by Ramiro Polla, angustia arrozcru.no-ip org Originally committed as revision 8348 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3d3361e509
commit
2a89ee9a63
6
ffmpeg.c
6
ffmpeg.c
@ -2565,10 +2565,8 @@ static void opt_input_file(const char *filename)
|
|||||||
for(i=0;i<ic->nb_streams;i++) {
|
for(i=0;i<ic->nb_streams;i++) {
|
||||||
int j;
|
int j;
|
||||||
AVCodecContext *enc = ic->streams[i]->codec;
|
AVCodecContext *enc = ic->streams[i]->codec;
|
||||||
#if defined(HAVE_THREADS)
|
|
||||||
if(thread_count>1)
|
if(thread_count>1)
|
||||||
avcodec_thread_init(enc, thread_count);
|
avcodec_thread_init(enc, thread_count);
|
||||||
#endif
|
|
||||||
enc->thread_count= thread_count;
|
enc->thread_count= thread_count;
|
||||||
switch(enc->codec_type) {
|
switch(enc->codec_type) {
|
||||||
case CODEC_TYPE_AUDIO:
|
case CODEC_TYPE_AUDIO:
|
||||||
@ -2691,10 +2689,8 @@ static void new_video_stream(AVFormatContext *oc)
|
|||||||
bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
|
bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
|
||||||
video_bitstream_filters= NULL;
|
video_bitstream_filters= NULL;
|
||||||
|
|
||||||
#if defined(HAVE_THREADS)
|
|
||||||
if(thread_count>1)
|
if(thread_count>1)
|
||||||
avcodec_thread_init(st->codec, thread_count);
|
avcodec_thread_init(st->codec, thread_count);
|
||||||
#endif
|
|
||||||
|
|
||||||
video_enc = st->codec;
|
video_enc = st->codec;
|
||||||
|
|
||||||
@ -2851,10 +2847,8 @@ static void new_audio_stream(AVFormatContext *oc)
|
|||||||
bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
|
bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
|
||||||
audio_bitstream_filters= NULL;
|
audio_bitstream_filters= NULL;
|
||||||
|
|
||||||
#if defined(HAVE_THREADS)
|
|
||||||
if(thread_count>1)
|
if(thread_count>1)
|
||||||
avcodec_thread_init(st->codec, thread_count);
|
avcodec_thread_init(st->codec, thread_count);
|
||||||
#endif
|
|
||||||
|
|
||||||
audio_enc = st->codec;
|
audio_enc = st->codec;
|
||||||
audio_enc->codec_type = CODEC_TYPE_AUDIO;
|
audio_enc->codec_type = CODEC_TYPE_AUDIO;
|
||||||
|
2
ffplay.c
2
ffplay.c
@ -1704,10 +1704,8 @@ static int stream_component_open(VideoState *is, int stream_index)
|
|||||||
if (!codec ||
|
if (!codec ||
|
||||||
avcodec_open(enc, codec) < 0)
|
avcodec_open(enc, codec) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
#if defined(HAVE_THREADS)
|
|
||||||
if(thread_count>1)
|
if(thread_count>1)
|
||||||
avcodec_thread_init(enc, thread_count);
|
avcodec_thread_init(enc, thread_count);
|
||||||
#endif
|
|
||||||
enc->thread_count= thread_count;
|
enc->thread_count= thread_count;
|
||||||
switch(enc->codec_type) {
|
switch(enc->codec_type) {
|
||||||
case CODEC_TYPE_AUDIO:
|
case CODEC_TYPE_AUDIO:
|
||||||
|
Loading…
Reference in New Issue
Block a user