Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Meonardo committed Feb 7, 2023
1 parent 8b098f1 commit 2f20bc6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/janus-videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f20bc6

Please sign in to comment.