[FFmpeg-cvslog] avformat/matroskaenc: print a warning when the relative timestamp wouldnt fit in 16bit

Michael Niedermayer git at videolan.org
Thu Jul 24 23:40:56 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 24 20:25:29 2014 +0200| [d44b8f0a47245936c371f0db88ff1436d218df00] | committer: Michael Niedermayer

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 <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d44b8f0a47245936c371f0db88ff1436d218df00
---

 libavformat/matroskaenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index bf917c6..db7c2af 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);
         }
     }



More information about the ffmpeg-cvslog mailing list