Displaying 2 results from an estimated 2 matches for "aifffile".
2015 Feb 19
0
[PATCH] oggenc: validate count of channels in the header
...b/oggenc/audio.c
@@ -13,6 +13,7 @@
#include <config.h>
#endif
+#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -251,6 +252,7 @@ int aiff_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen)
aiff_fmt format;
aifffile *aiff = malloc(sizeof(aifffile));
int i;
+ long channels;
if(buf[11]=='C')
aifc=1;
@@ -277,11 +279,17 @@ int aiff_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen)
return 0;
}
- format.channels = READ_U16_BE(buffer);
+ format.chann...
2003 Aug 30
1
Fink's vorbis-tools patch
...-- next part --------------
diff -urN vorbis-tools-1.0.orig/oggenc/audio.c vorbis-tools-1.0/oggenc/audio.c
--- vorbis-tools-1.0.orig/oggenc/audio.c Thu Jul 11 16:20:33 2002
+++ vorbis-tools-1.0/oggenc/audio.c Mon Jan 20 09:42:57 2003
@@ -220,6 +220,8 @@
unsigned char buf2[8];
aiff_fmt format;
aifffile *aiff = malloc(sizeof(aifffile));
+
+ unsigned int bigendian = 1;
if(buf[11]=='C')
aifc=1;
@@ -258,6 +260,10 @@
fprintf(stderr, _("Warning: AIFF-C header truncated.\n"));
return 0;
}
+ else if( ! memcmp(buffer+18, "sowt", 4) )
+ {
+ bigendian = 0;...