[FFmpeg-cvslog] ffio_read: dont spam the user at EOF with a truncation error

Michael Niedermayer git at videolan.org
Sat Sep 8 12:45:00 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep  8 12:08:25 2012 +0200| [8a0118b4b49460fb2d33b3fac765c7131816ecc7] | committer: Michael Niedermayer

ffio_read: dont spam the user at EOF with a truncation error

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1988fbd..5057bf1 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;
         }
     }



More information about the ffmpeg-cvslog mailing list