summaryrefslogtreecommitdiffstats
path: root/libhb/muxavformat.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-06-13 08:01:55 -0700
committerJohn Stebbins <[email protected]>2018-06-13 08:01:55 -0700
commit88bb81b6c9d6ca75efa1384ba51fce03cc0e5532 (patch)
treee299a7411cff46afa7af9e003c90a6c592d94dda /libhb/muxavformat.c
parentba64e40a8afc4667ab2419c8c4996ed89a1eb918 (diff)
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).
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r--libhb/muxavformat.c2
1 files changed, 1 insertions, 1 deletions
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 )