diff options
author | Rodeo <[email protected]> | 2014-01-02 14:07:42 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2014-01-02 14:07:42 +0000 |
commit | 59f27d3ab84dfa5753007f38c143f4cb69898a66 (patch) | |
tree | b93d2e5230c77e59d0361010780ec99f8dea8ed3 /libhb | |
parent | bef09e1019dcb45f69797c657ff39f74c08a3b89 (diff) |
muxavformat: print the actual error name, rather than a hard-to-lookup error code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5949 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/muxavformat.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index 862290ecf..5dc477d6e 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -1098,7 +1098,10 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu int ret = av_interleaved_write_frame(m->oc, &empty_pkt); if (ret < 0) { - hb_error("av_interleaved_write_frame failed! - Subtitle -(%d)", ret); + char errstr[64]; + av_strerror(ret, errstr, sizeof(errstr)); + hb_error("avformatMux: track %d, av_interleaved_write_frame failed with error '%s' (empty_pkt)", + track->st->index, errstr); *job->done_error = HB_ERROR_UNKNOWN; *job->die = 1; return -1; @@ -1145,7 +1148,10 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu // write errors (like disk full condition). if (ret < 0 || m->oc->pb->error != 0) { - hb_error("av_interleaved_write_frame failed! - IO -(%d)", ret); + char errstr[64]; + av_strerror(ret < 0 ? ret : m->oc->pb->error, errstr, sizeof(errstr)); + hb_error("avformatMux: track %d, av_interleaved_write_frame failed with error '%s'", + track->st->index, errstr); *job->done_error = HB_ERROR_UNKNOWN; *job->die = 1; return -1; |