Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/usr.bin/audio/common Pull up following revision(s) (reque...



details:   https://anonhg.NetBSD.org/src/rev/c835403b5dda
branches:  netbsd-8
changeset: 434442:c835403b5dda
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Nov 27 12:00:37 2017 +0000

description:
Pull up following revision(s) (requested by jdolecek in ticket #395):
        usr.bin/audio/common/wav.c: revision 1.14
need getle16() for ext.sub_tag too
PR bin/52762 by Yosuke Sugahara

diffstat:

 usr.bin/audio/common/wav.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c5883dbc3658 -r c835403b5dda usr.bin/audio/common/wav.c
--- a/usr.bin/audio/common/wav.c        Mon Nov 27 11:36:29 2017 +0000
+++ b/usr.bin/audio/common/wav.c        Mon Nov 27 12:00:37 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wav.c,v 1.13 2015/08/05 06:54:39 mrg Exp $     */
+/*     $NetBSD: wav.c,v 1.13.8.1 2017/11/27 12:00:37 martin Exp $      */
 
 /*
  * Copyright (c) 2002, 2009 Matthew R. Green
@@ -33,7 +33,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: wav.c,v 1.13 2015/08/05 06:54:39 mrg Exp $");
+__RCSID("$NetBSD: wav.c,v 1.13.8.1 2017/11/27 12:00:37 martin Exp $");
 #endif
 
 
@@ -140,7 +140,7 @@
                memcpy(&ext, owhere + sizeof fmt, sizeof ext);
                if (getle16(ext.len) < sizeof(ext) - sizeof(ext.len))
                        return (AUDIO_ESHORTHDR);
-               fmttag = ext.sub_tag;
+               fmttag = getle16(ext.sub_tag);
                if (verbose)
                        printf("WAVE extensible sub tag: %x\n", fmttag);
        }



Home | Main Index | Thread Index | Old Index