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