On 11/20/12, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote: > 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? probably (i doesnt hurt at least).