diff mbox series

[FFmpeg-devel] avformat/alp: tweak probe function to return MAX-1

Message ID 20200309115505.12294-1-zane@zanevaniperen.com
State Accepted
Headers show
Series [FFmpeg-devel] avformat/alp: tweak probe function to return MAX-1
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Zane van Iperen March 9, 2020, 11:55 a.m. UTC
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
---
 libavformat/alp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Carl Eugen Hoyos March 9, 2020, 12:43 p.m. UTC | #1
Am Mo., 9. März 2020 um 12:55 Uhr schrieb Zane van Iperen
<zane@zanevaniperen.com>:
>
> Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
> ---
>  libavformat/alp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/alp.c b/libavformat/alp.c
> index c0c7905380..4c2e8f0652 100644
> --- a/libavformat/alp.c
> +++ b/libavformat/alp.c
> @@ -51,7 +51,7 @@ static int alp_probe(const AVProbeData *p)
>      if (strncmp("ADPCM", p->buf + 8, 6) != 0)
>          return 0;
>
> -    return AVPROBE_SCORE_EXTENSION + 1;
> +    return AVPROBE_SCORE_MAX - 1;

Patch applied.

Thank you, Carl Eugen
diff mbox series

Patch

diff --git a/libavformat/alp.c b/libavformat/alp.c
index c0c7905380..4c2e8f0652 100644
--- a/libavformat/alp.c
+++ b/libavformat/alp.c
@@ -51,7 +51,7 @@  static int alp_probe(const AVProbeData *p)
     if (strncmp("ADPCM", p->buf + 8, 6) != 0)
         return 0;
 
-    return AVPROBE_SCORE_EXTENSION + 1;
+    return AVPROBE_SCORE_MAX - 1;
 }
 
 static int alp_read_header(AVFormatContext *s)