Browse Source

lavf: More informative error message

Print the timestamp values and not just the stream index.
tags/n2.5
Luca Barbato 10 years ago
parent
commit
eb4f906900
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavformat/mux.c

+ 4
- 1
libavformat/mux.c View File

@@ -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);
}



Loading…
Cancel
Save