[FFmpeg-cvslog] dxv: Improve error message

Vittorio Giovara git at videolan.org
Sat Sep 26 11:15:53 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Sep 22 13:58:00 2015 +0200| [b2417ee6d1ee0c5e9b170a642d73bdf68908966f] | committer: Vittorio Giovara

dxv: Improve error message

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2417ee6d1ee0c5e9b170a642d73bdf68908966f
---

 libavcodec/dxv.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c
index 3f060cb..32137f5 100644
--- a/libavcodec/dxv.c
+++ b/libavcodec/dxv.c
@@ -412,7 +412,8 @@ static int dxv_decode(AVCodecContext *avctx, void *data,
            msgcomp, msgtext, version_major, version_minor);
 
     if (size != bytestream2_get_bytes_left(gbc)) {
-        av_log(avctx, AV_LOG_ERROR, "Incomplete or invalid file (%u > %u)\n.",
+        av_log(avctx, AV_LOG_ERROR,
+               "Incomplete or invalid file (header %d, left %d).\n",
                size, bytestream2_get_bytes_left(gbc));
         return AVERROR_INVALIDDATA;
     }



More information about the ffmpeg-cvslog mailing list