[FFmpeg-devel] [PATCH] lavf/utils: change truncating packet log to a warning

Rostislav Pehlivanov atomnuker at gmail.com
Sun Sep 30 08:08:47 EEST 2018


Some scene files do this intentionally for the sake of having a nice checksum.
---
 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index c973a7e0c5..924b99f6d4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -257,7 +257,7 @@ int ffio_limit(AVIOContext *s, int size)
         }
 
         if (s->maxsize>= 0 && remaining+1 < size) {
-            av_log(NULL, remaining ? AV_LOG_ERROR : AV_LOG_DEBUG, "Truncating packet of size %d to %"PRId64"\n", size, remaining+1);
+            av_log(NULL, remaining ? AV_LOG_WARNING : AV_LOG_DEBUG, "Truncating packet of size %d to %"PRId64"\n", size, remaining+1);
             size = remaining+1;
         }
     }
-- 
2.19.0



More information about the ffmpeg-devel mailing list