aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-01-06 01:01:21 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-01-06 01:01:21 +0000
commit7820147e6fe43816bafe7ee1d0141a77eb10f53c (patch)
tree19cb645f1de555b8f828bef5fca8b60aba73bffd /libavformat/utils.c
parent81bd4119652ce3911c6604f3421a46c677d6c10f (diff)
downloadffmpeg-7820147e6fe43816bafe7ee1d0141a77eb10f53c.tar.gz
Issue more explicit error messages in compute_pkt_fields2().
Originally committed as revision 26238 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index fb93e3b57c..3b1b34e692 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2917,12 +2917,14 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt){
if(st->cur_dts && st->cur_dts != AV_NOPTS_VALUE && st->cur_dts >= pkt->dts){
av_log(s, AV_LOG_ERROR,
- "st:%d error, non monotone timestamps %"PRId64" >= %"PRId64"\n",
+ "Non monotone timestamps in stream number %d: st->cur_dts:%"PRId64" >= pkt->dts:%"PRId64"\n",
st->index, st->cur_dts, pkt->dts);
return -1;
}
if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts){
- av_log(s, AV_LOG_ERROR, "st:%d error, pts < dts\n", st->index);
+ av_log(s, AV_LOG_ERROR,
+ "pts < dts in stream number %d\n: pkt->pts:%"PRId64" < pkt->dts:%"PRId64"\n",
+ st->index, pkt->pts, pkt->dts);
return -1;
}