ardour/tools/misc-patches/libsndfile-1.0.25.patch
Paul Davis 3e81d8d44b patch for ugliness in libsndfile 1.0.25, and dir for this and similar future patches
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12372 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-22 01:34:53 +00:00

15 lines
520 B
Diff

--- src/broadcast.c~ 2011-03-27 23:53:08.000000000 -0400
+++ src/broadcast.c 2012-05-21 21:23:11.914815287 -0400
@@ -82,8 +82,10 @@
/* Force coding_history_size to be even. */
len = strlen (psf->broadcast_16k->coding_history) ;
- len += (len & 1) ? 1 : 2 ;
- psf->broadcast_16k->coding_history_size = len ;
+ if (len && ( len & 1)) {
+ len += 1;
+ }
+ psf->broadcast_16k->coding_history_size = len ;
/* Currently writing this version. */
psf->broadcast_16k->version = 1 ;