Displaying 1 result from an estimated 1 matches for "riff_err".
Did you mean:
ifc_err
2004 Oct 27
1
Fix for Theora example encoder
...xample.c (working copy)
@@ -133,6 +133,7 @@
unsigned char buffer[80];
int ret;
int tmp_video_hzn, tmp_video_hzd, tmp_video_an, tmp_video_ad;
+ int extra_hdr_bytes;
/* open it, look for magic */
@@ -179,6 +180,9 @@
ret=fread(buffer,1,20,test);
if(ret<20)goto riff_err;
+ extra_hdr_bytes = (buffer[0] + (buffer[1] << 8) +
+ (buffer[2] << 16) + (buffer[3] << 24)) - 16;
+
if(memcmp(buffer+4,"\001\000",2)){
fprintf(stderr,"The WAV file %s is in a compressed format; "...