On Fri, Feb 07, 2020 at 12:19:32AM +0100, Hendrik Leppkes wrote: > On Fri, Feb 7, 2020 at 12:16 AM Michael Niedermayer <michae...@gmx.at> wrote: > > > > On Thu, Feb 06, 2020 at 03:27:11PM +0100, Paul B Mahol wrote: > > > Nonsense, why would this code be called with 0 buffer? > > > > I guess because code calls av_probe_input_format3() with a 0 buffer > > its a public function and called by multiple places from our code base > > as well. Theres even code in it to handle the case of a 0 sized input. > > > > The code that triggers it in this case seems to be probing the stream > > content. Its not a 0 byte input file > > > > The generic code in the public API calls should probably catch that > then, a probe function really can't do anything meaningful on a NULL > or zero-sized buffer.
some of our probe functions have code to handle zero buffers, an example of this is to search the file name for placeholders like %d with image extensions. If the file failed to open and has that in its name that identifies it as a sequence of images. I suspect v4l2 will also give you a 0 buffer and i guess there are others Thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I know you won't believe me, but the highest form of Human Excellence is to question oneself and others. -- Socrates
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".