2015-12-21, 17:45
(2015-12-21, 16:59)popcornmix Wrote:Added for jpeg and png ... most likely broken files won't work anymore. Format guessing can be made endlessly complicated.(2015-12-21, 16:52)MrMC Wrote: performance hit is tiny, you already have the data buffer and are only checking the 1st few bytes.
But it scales with number of decoders supported by ffmpeg. And some may need more probing than others.
Edit: fixed that up