On Oct 25, 2011 8:13 PM, "Alex Converse" <[email protected]> wrote:
>
> Restore behavior of identifying files with huge id3 tags as
> mp3 at AVPROBE_SCORE_MAX/4. This was broken in r25378 and subsequently
> removed in r25929.
> ---
>  libavformat/utils.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 2196d35..ccef106 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -347,6 +347,14 @@ AVInputFormat *av_probe_input_format2(AVProbeData
*pd, int is_opened, int *score
>             }
>     }
>
> +    if (!fmt && is_opened && *score_max < AVPROBE_SCORE_MAX/4-1) {

I obviously forgot the important part...

> +        while ((fmt = av_iformat_next(fmt)))
> +            if (fmt->extensions && av_match_ext("mp3", fmt->extensions))
{
> +                *score_max = AVPROBE_SCORE_MAX/4-1;
> +                break;
> +            }
> +    }
> +
>     return fmt;
>  }
>
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to