On Fri, 11 Jul 2014 17:02:22 +0200, Luca Barbato <[email protected]> wrote:
> On 11/07/14 16:45, wm4 wrote:
> >> +#ifdef FF_API_PROBE_MIME
> >> > +        if (match_name(lpd.mime_type, fmt1->mime_type))
> >> > +            score = FFMAX(score, AVPROBE_SCORE_EXTENSION);
> > Looks good to me conceptually, but I wonder if matching mime type
> > shouldn't give a slightly higher probe score than matching extension.
> > Websites sometimes serve mismatching mime type and extension, and
> > unlike the mime type is generic untyped data, the mime type seems to
> > be more often the correct one.
> > 
> > I suppose it's also a good idea to accelerate probing slow streams (web
> > radios) by giving a higher score.
> > 
> 
> We could give it a specific score higher than the extension, anybody
> else has an opinion?
> 

I don't have much opinion here.
I suppose we could give it a little higher score and see what breaks or doesn't.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to