From 88bb81b6c9d6ca75efa1384ba51fce03cc0e5532 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 13 Jun 2018 08:01:55 -0700 Subject: [PATCH] muxavformat: fix use of deprecated AVFormat.filename The new way is AVFormat.url. AVFormat.filename had lenght limitations that url does not since it is allocated by the caller (and freed by libavformat). --- libhb/muxavformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index 0e5d6f8ba..d4f94356a 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -182,7 +182,7 @@ static int avformatInit( hb_mux_object_t * m ) hb_error("Could not guess output format %s", muxer_name); goto error; } - av_strlcpy(m->oc->filename, job->file, sizeof(m->oc->filename)); + m->oc->url = strdup(job->file); ret = avio_open2(&m->oc->pb, job->file, AVIO_FLAG_WRITE, &m->oc->interrupt_callback, NULL); if( ret < 0 ) -- 2.40.0