summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2022-03-02 20:15:51 +0800
committerLimin Wang <lance.lmwang@gmail.com>2022-03-22 23:00:53 +0800
commit42f1be446179f8ceb505010cac24358eea30843f (patch)
tree79557bc75f4ba7d3485d1fbdc965107321e9a63f /libavformat/movenc.c
parentfc8a6a6f4cc3d9b5ca278d181bba97297dd8ee6a (diff)
downloadffmpeg-42f1be446179f8ceb505010cac24358eea30843f.tar.gz
avformat/movenc: use warning log level and small adjustment for the log
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 4e9ce1b952..46d66c29c2 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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;