On Tue, May 26, 2015 at 7:50 PM, Andreas Cadhalpun <andreas.cadhal...@googlemail.com> wrote: >>>> +int ffio_read_size(AVIOContext *s, unsigned char *buf, int size) >>>> +{ >>>> + int ret = avio_read(s, buf, size); >>>> + if (ret != size) >>>> + return AVERROR_INVALIDDATA; > > I like the idea of having such a function and I think most uses of avio_read > should be replaced with it. > What do you think about making it public and recommending it over using > avio_read directly?
I'd be ok with it, let's hear if there is any objection from the crowd. -- Vittorio _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel