From 229d6583a006f5bebcd361200508f97c914be349 Mon Sep 17 00:00:00 2001 From: corthiclem Date: Mon, 22 Jan 2024 11:56:45 +0100 Subject: [PATCH] Fixed broken faststart when postprocessing AV1 recordings (#3317) --- postprocessing/pp-av1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postprocessing/pp-av1.c b/postprocessing/pp-av1.c index 35f9f8a6f3..bfb6b983d0 100644 --- a/postprocessing/pp-av1.c +++ b/postprocessing/pp-av1.c @@ -55,6 +55,8 @@ int janus_pp_av1_create(char *destination, char *metadata, gboolean faststart, c return -1; } + fctx->url = g_strdup(destination); + vStream = janus_pp_new_video_avstream(fctx, AV_CODEC_ID_AV1, max_width, max_height); if(vStream == NULL) { JANUS_LOG(LOG_ERR, "Error adding stream\n"); @@ -526,6 +528,8 @@ void janus_pp_av1_close(void) { if(fctx != NULL) { av_write_trailer(fctx); avio_close(fctx->pb); + g_free(fctx->url); + fctx->url = NULL; avformat_free_context(fctx); } }