Mailing List archive

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

[linux-dvb] tuxzap & liba52



Hi!

It seems that the documentation of liba52 is wrong.
gcc complains to many args for a52_block while compiling
tuxzap/src/dvb_formats.c in line 2929.

this should solve the problem:

--- dvb-0.9.4.20020429.orig/apps/tuxzap/src/dvb_formats.c
+++ dvb-0.9.4.20020429/apps/tuxzap/src/dvb_formats.c
@@ -2882,7 +2882,7 @@
 void a52_decode_data (int fd, uint8_t *pts, uint8_t * start,
                      uint8_t * end, sample_t *my_samples)
 {
-       static a52_state_t state;
+       static a52_state_t * state;

        uint8_t intsamples[6*256*4];
        int len=0;
@@ -2922,11 +2922,11 @@
                                bias = 384;

                                flags |= A52_ADJUST_LEVEL;
-                               if (a52_frame (&state, a52_buf, &flags, &level, 
+                               if (a52_frame (state, a52_buf, &flags, &level, 
                                               bias))
                                        goto error;
                                for (i = 0; i < 6; i++) {
-                                       if (a52_block (&state, my_samples))
+                                       if (a52_block (state)) //, my_samples))
                                                goto error;
                                        len += float_to_int (my_samples,
                                                             intsamples+len,

----

but anyway tuxzap dies when selecting the channel list.
-- 
Heute ist nicht alle Tage, ich komm' wieder, keine Frage!!!

   Joerg

Dr. Jekyll had something to Hyde.


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.


Home | Main Index | Thread Index