diff options
author | John Stebbins <[email protected]> | 2018-06-15 13:16:00 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-06-15 13:17:32 -0700 |
commit | dc2bba58a7cbfee26b3d9992df062392a82b09c3 (patch) | |
tree | e60d88e0ab8479850e6bdd4f477d9ef229972bd4 /libhb/muxavformat.c | |
parent | 762b1cf321b7db4b7f58b36c88baa7714edabfc3 (diff) |
muxavformat: fix crash on windows
We allocate AVFormatContext.url, but libavformat frees it. So we must
use an allocation function that is compatible with the free function
used by libavformat.
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r-- | libhb/muxavformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index d4f94356a..f8a0ab984 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; } - m->oc->url = strdup(job->file); + m->oc->url = av_strdup(job->file); ret = avio_open2(&m->oc->pb, job->file, AVIO_FLAG_WRITE, &m->oc->interrupt_callback, NULL); if( ret < 0 ) |