From 2f20bc6ab062189a83a6cb5442df948ccc586955 Mon Sep 17 00:00:00 2001 From: Meonardo Date: Tue, 7 Feb 2023 09:42:41 +0800 Subject: [PATCH] Update. --- src/janus-videoroom.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/janus-videoroom.c b/src/janus-videoroom.c index 1d96497..951f100 100644 --- a/src/janus-videoroom.c +++ b/src/janus-videoroom.c @@ -165,14 +165,14 @@ static void janus_output_stop(void *data, uint64_t ts) { struct janus_output *output = data; - AVCodecContext *codec_context = output->js_data.audio_info.ctx; - AVFormatContext *format_context = output->js_data.audio_info.format_ctx; - - // Write the trailer to the output file - if (av_write_trailer(format_context) < 0) { - blog(LOG_ERROR, "Could not write output file trailer"); - } - cleanup(codec_context, format_context); + // encode audio test + //AVCodecContext *codec_context = output->js_data.audio_info.ctx; + //AVFormatContext *format_context = output->js_data.audio_info.format_ctx; + //// Write the trailer to the output file + //if (av_write_trailer(format_context) < 0) { + // blog(LOG_ERROR, "Could not write output file trailer"); + //} + //cleanup(codec_context, format_context); // Unpublish if (output->janus_conn != NULL) {