]> granicus.if.org Git - handbrake/commitdiff
Print the av_interleaved_write_frame error code in muxavformat.c
authorsr55 <sr55.hb@outlook.com>
Sun, 29 Dec 2013 19:25:24 +0000 (19:25 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 29 Dec 2013 19:25:24 +0000 (19:25 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5943 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxavformat.c

index 6aeb5122e8fcc534a0ca994275471dff2e7aa530..862290ecfafbaf10b35f8b5dd6477fa7dacbcb99 100644 (file)
@@ -1098,7 +1098,7 @@ 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!");
+                        hb_error("av_interleaved_write_frame failed! - Subtitle -(%d)", ret);
                         *job->done_error = HB_ERROR_UNKNOWN;
                         *job->die = 1;
                         return -1;
@@ -1145,7 +1145,7 @@ 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!");
+        hb_error("av_interleaved_write_frame failed! - IO -(%d)", ret);
         *job->done_error = HB_ERROR_UNKNOWN;
         *job->die = 1;
         return -1;