diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-27 19:00:04 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-27 19:00:04 +0000 |
commit | 150611474e2a12471078bc4c7300ab97cc174d22 (patch) | |
tree | 7b42e39a0deb1736a4c4eab0b4c61720fd7b4d07 /libavformat/utils.c | |
parent | b6a66897b67a68ce99e0b7bfede90ae0b43275a7 (diff) | |
download | ffmpeg-150611474e2a12471078bc4c7300ab97cc174d22.tar.gz |
give context to av_log
Originally committed as revision 14012 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 7dd9bfaa7e..63dd959af9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2473,11 +2473,11 @@ static int compute_pkt_fields2(AVStream *st, AVPacket *pkt){ } if(st->cur_dts && st->cur_dts != AV_NOPTS_VALUE && st->cur_dts >= pkt->dts){ - av_log(NULL, AV_LOG_ERROR, "error, non monotone timestamps %"PRId64" >= %"PRId64"\n", st->cur_dts, pkt->dts); + av_log(st->codec, AV_LOG_ERROR, "error, non monotone timestamps %"PRId64" >= %"PRId64"\n", st->cur_dts, pkt->dts); return -1; } if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts){ - av_log(NULL, AV_LOG_ERROR, "error, pts < dts\n"); + av_log(st->codec, AV_LOG_ERROR, "error, pts < dts\n"); return -1; } |