Quoting Luca Barbato (2014-12-06 12:34:57)
> Having more than 10 consecutive frames decoded as mp3 should be
> considered a clear signal that the sample is mp3 and not mpegps.
> 
> Reported-By: Florian Iragne <[email protected]>
> CC: [email protected]
> ---
>  libavformat/mp3dec.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
> index d8ad08f..35f00c7 100644
> --- a/libavformat/mp3dec.c
> +++ b/libavformat/mp3dec.c
> @@ -83,6 +83,8 @@ static int mp3_read_probe(AVProbeData *p)
>      }
>      // keep this in sync with ac3 probe, both need to avoid
>      // issues with MPEG-files!
> +    if (first_frames >= 10)
> +        return AVPROBE_SCORE_EXTENSION + 5;
>      if (first_frames >= 4)
>          return AVPROBE_SCORE_EXTENSION + 1;
>  
> -- 
> 2.1.0
> 

I suppose the patch could be fine, but do we really want it in stable?

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

Reply via email to