diff options
author | George Sheppard <[email protected]> | 2021-03-03 00:21:34 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-03 09:21:34 +0100 |
commit | a29c438538766c6b9b3e03d81abc663a6b9fa857 (patch) | |
tree | 4dfdf1606c8d3442cfd934873eaa609339cc2688 | |
parent | a18324937904d7d86b7a9117d63d0153f9cbf6da (diff) |
Fix for Issue #632 (#3413)
muxavformat: add logic to compare avio error message, and add description of the
error if the output destination file cannot be written or accessed.
-rw-r--r-- | libhb/muxavformat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index f4f7734d4..a024b2b30 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -197,6 +197,11 @@ static int avformatInit( hb_mux_object_t * m ) &m->oc->interrupt_callback, NULL); if( ret < 0 ) { + if( ret == -2 ) + { + hb_error( "avio_open2 failed, errno -2: Could not write to indicated output file. Please check destination path and file permissions" ); + } + else hb_error( "avio_open2 failed, errno %d", ret); goto error; } |