From d44b8f0a47245936c371f0db88ff1436d218df00 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 24 Jul 2014 20:25:29 +0200 Subject: [PATCH] avformat/matroskaenc: print a warning when the relative timestamp wouldnt fit in 16bit This is somewhat unusual so its better to use warning level than debug Signed-off-by: Michael Niedermayer --- libavformat/matroskaenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index bf917c66f4..db7c2af74e 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1712,7 +1712,7 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt, int add_ if (mkv->cluster_pos != -1) { int64_t cluster_time = ts - mkv->cluster_pts + mkv->tracks[pkt->stream_index].ts_offset; if ((int16_t)cluster_time != cluster_time) { - av_log(s, AV_LOG_DEBUG, "Starting new cluster due to timestamp\n"); + av_log(s, AV_LOG_WARNING, "Starting new cluster due to timestamp\n"); mkv_start_new_cluster(s, pkt); } }