aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-10-09 17:18:03 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-10-10 16:29:06 +0200
commiteb4f9069002e73648f6640cd054fc814cfda75b8 (patch)
tree733487e4a5223380d44b22dab74f53de80719c07 /libavformat/mux.c
parentb7c3bfd5eb3153f7de8039f96e7911b2a1d46cae (diff)
downloadffmpeg-eb4f9069002e73648f6640cd054fc814cfda75b8.tar.gz
lavf: More informative error message
Print the timestamp values and not just the stream index.
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index df4f57a7f3..3b11e4e938 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);
}