Commit 8a0118b4 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 124f0b2f
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment