[vlc-commits] flac: fix extradata clamping check

Tristan Matthews git at videolan.org
Fri Nov 29 15:55:29 CET 2013


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Mon Nov 25 03:03:00 2013 +0000| [16e9999966c12f696de57b0e7e5c0f39d7b0f621] | committer: Tristan Matthews

flac: fix extradata clamping check

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

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

diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index 72a12bc..a43983a 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -389,7 +389,7 @@ static void ProcessHeader( decoder_t *p_dec )
 
     if (i_extra > 42 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
         i_extra = 42;
-    else if (i_extra > 34 && memcmp(p_dec->fmt_in.p_extra, header, 4))
+    else if (i_extra > 34 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
         i_extra = 34;
 
     switch (i_extra) {



More information about the vlc-commits mailing list