Michael Niedermayer <michaelni <at> gmx.at> writes: > > + if (pos >= offset) > > + return AVERROR_INVALIDDATA; > > ok but theres a 2nd case below which i think needs a similar change Merged by you with the similar change. Thank you, Carl Eugen