mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
give context to av_log
Originally committed as revision 14012 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b6a66897b6
commit
150611474e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user