Paul B Mahol <onemda <at> gmail.com> writes: > > Or should AVERROR_EOF by returned whenever left <= 0 ? > > My understanding is that it should return EIO if it reads > corrupted (too small) packet. So is the patch ok? Carl Eugen