[vlc-commits] afile: check equality, not starts with

Lyndon Brown git at videolan.org
Thu Sep 24 20:39:47 CEST 2020


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Sun May 12 22:31:54 2019 +0100| [ae6af4007e7b957052ad88dee3af8958e31ca7f0] | committer: Rémi Denis-Courmont

afile: check equality, not starts with

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae6af4007e7b957052ad88dee3af8958e31ca7f0
---

 modules/audio_output/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index d87dbeab93..2cfe56de47 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -181,7 +181,7 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
     i_format_list_size = (int)ARRAY_SIZE(format_list);
     for (i = 0; i < i_format_list_size; i++)
     {
-        if ( !strncmp( format_list[i], psz_format, strlen(format_list[i]) ) )
+        if ( !strcmp( format_list[i], psz_format ) )
         {
             break;
         }



More information about the vlc-commits mailing list