diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-08 12:08:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-08 12:41:57 +0200 |
commit | 8a0118b4b49460fb2d33b3fac765c7131816ecc7 (patch) | |
tree | b20a568834e5754dd2aa11c4d99c1d2efea35826 /libavformat | |
parent | 124f0b2f4687ee8a0d30f0c615e155e72df1df0d (diff) | |
download | ffmpeg-8a0118b4b49460fb2d33b3fac765c7131816ecc7.tar.gz |
ffio_read: dont spam the user at EOF with a truncation error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |