Quoting Andreas Rheinhardt (2023-03-21 13:31:51) > > + * @return 0 if succeed. Otherwise, returns the appropriate AVERROR. > > We should return >= 0 on success to be future-proof. +1, this should be used more widely, as it has no disadvantages -- Anton Khirnov