[FFmpeg-devel] [PATCH 2/2] img2dec: Add mime_type to image formats

Clément Bœsch u at pkh.me
Thu Feb 25 22:37:40 CET 2016


On Thu, Feb 25, 2016 at 10:35:39PM +0100, Clément Bœsch wrote:
> On Thu, Feb 25, 2016 at 04:30:13PM +0000, Carl Eugen Hoyos wrote:
> > Justin Ruggles writes:
> > 
> > > In terms of how the score for a MIME type match compares with 
> > > those of the individual content matching probe functions, I'd 
> > > say it makes sense. The stronger probing functions have a 
> > > score which reflects their reliability.
> > 
> > But even _EXTENSION + 1 is correct in practically all cases 
> > (the exception are mpeg streams that start with the needed four 
> > bytes) and should not be beaten by mime_type.
> > 
> > > Improves probing, especially over http when there is a 
> > > Content-Type header
> > 
> > Please give an example of a failing stream.
> 
> Any image here for instance:
> http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php#x1
> 
> But really, any random image anywhere on the web after you add ?foo=bar to
> the URL.
> 

My bad, it works.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160225/c769e93d/attachment.sig>


More information about the ffmpeg-devel mailing list