Skip to content

Commit

Permalink
Fixed broken faststart when postprocessing AV1 recordings (#3317)
Browse files Browse the repository at this point in the history
  • Loading branch information
corthiclem committed Jan 22, 2024
1 parent 3550504 commit ea85c19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/postprocessing/pp-av1.c
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
}
}

0 comments on commit ea85c19

Please sign in to comment.