From e536cdae24b39096e88bd71b76c18f7489c291c7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 5 Aug 2017 13:13:48 -0500 Subject: [PATCH] FS-10527: [mod_av] AV tweaks -- using more threads on decode is a little buggy --- src/mod/applications/mod_av/avcodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_av/avcodec.c b/src/mod/applications/mod_av/avcodec.c index b0a45bc15d..f987a47466 100644 --- a/src/mod/applications/mod_av/avcodec.c +++ b/src/mod/applications/mod_av/avcodec.c @@ -1024,7 +1024,7 @@ static switch_status_t switch_h264_init(switch_codec_t *codec, switch_codec_flag if (threads > 4) threads = 4; context->decoder_ctx = avcodec_alloc_context3(context->decoder); - context->decoder_ctx->thread_count = threads; + //context->decoder_ctx->thread_count = threads; if (avcodec_open2(context->decoder_ctx, context->decoder, NULL) < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error openning codec\n"); goto error;