[FFmpeg-cvslog] lavf: More informative error message

Luca Barbato git at videolan.org
Fri Oct 10 20:48:49 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Oct  9 17:18:03 2014 +0200| [eb4f9069002e73648f6640cd054fc814cfda75b8] | committer: Luca Barbato

lavf: More informative error message

Print the timestamp values and not just the stream index.

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

 libavformat/mux.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index df4f57a..3b11e4e 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -294,7 +294,10 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
         return AVERROR(EINVAL);
     }
     if (pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts) {
-        av_log(s, AV_LOG_ERROR, "pts < dts in stream %d\n", st->index);
+        av_log(s, AV_LOG_ERROR,
+               "pts %" PRId64 " < dts %" PRId64 " in stream %d\n",
+               pkt->pts, pkt->dts,
+               st->index);
         return AVERROR(EINVAL);
     }
 



More information about the ffmpeg-cvslog mailing list