avformat/movenc: use warning log level and small adjustment for the log

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2022-03-02 20:15:51 +08:00
parent fc8a6a6f4c
commit 42f1be4461
1 changed files with 2 additions and 3 deletions

View File

@ -5641,9 +5641,8 @@ static int check_pkt(AVFormatContext *s, AVPacket *pkt)
duration = pkt->dts - ref;
if (pkt->dts < ref || duration >= INT_MAX) {
av_log(s, AV_LOG_ERROR, "Application provided duration: %"PRId64" / timestamp: %"PRId64" is out of range for mov/mp4 format\n",
duration, pkt->dts
);
av_log(s, AV_LOG_WARNING, "Packet duration: %"PRId64" / dts: %"PRId64" is out of range\n",
duration, pkt->dts);
pkt->dts = ref + 1;
pkt->pts = AV_NOPTS_VALUE;