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). Patch applied. Thank you, Carl Eugen