summaryrefslogtreecommitdiff
path: root/v4l_experimental/xc3028/convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l_experimental/xc3028/convert.c')
-rw-r--r--v4l_experimental/xc3028/convert.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/v4l_experimental/xc3028/convert.c b/v4l_experimental/xc3028/convert.c
index 00b1f7d9d..2559bba5e 100644
--- a/v4l_experimental/xc3028/convert.c
+++ b/v4l_experimental/xc3028/convert.c
@@ -3,13 +3,14 @@
#include <stdlib.h>
#define ARRAY_SIZE(fw) sizeof(fw)/sizeof(fw[0])
+
struct{
char *fwname;
char *fwstart;
char *fwstart2;
int length1;
int length2;
-} xc_firmware[]={{"Terratec","\x2a\x03\xe5\xe0\x00\x07\xf4\xd0\x01\xc0\x70\xe0\x00\x07","\x2a\x00\xc3\xe0\x00\x07\xb9\xf1\x05\x01\x6e\x82\x02\x82",2480,3876},
+} xc_firmware[]={{"Terratec","\x2a\x03\xe5\xe0\x00\x07\xf4\xd0\x01\xc0\x70\xe0\x00\x07","\x2a\x00\xbc\xe0\x00\x07\xb0\xf1\x05\x01\x67\x82\x02\x82",2480,3890},
{"Hauppauge","\x2a\x03\xcc\xe0\x00\x07\xf4\xd0\x01\xc0\x70\xe0\x00\x07","\x2a\x00\xbe\xe0\x00\x07\xb9\xf1\x05\x01\x69\x82\x02\x82",2532,3886}};
int main(int argc, char **argv){
@@ -29,6 +30,10 @@ int main(int argc, char **argv){
exit(1);
}
file=fopen(argv[1],"r");
+ if(!file){
+ printf("unable to open file\n");
+ exit(1);
+ }
fprintf(stderr,"Firmware extractor 0.1\n");
while((len=fread(buffer,1,1024,file))){
fleng+=len;