pkgsrc/multimedia/dvb-apps/patches/patch-lib_libucsi_atsc_cvct__section.c
jmcneill f236f6ffc0 add the following to the dvb-apps build:
- libdvbapi
 - libucsi
 - atsc_epg
 - azap / czap / szap / tzap
 - dvbdate
2011-07-15 22:59:20 +00:00

34 lines
945 B
C

$NetBSD: patch-lib_libucsi_atsc_cvct__section.c,v 1.1 2011/07/15 22:59:20 jmcneill Exp $
--- lib/libucsi/atsc/cvct_section.c.orig 2011-06-28 05:50:24.000000000 +0000
+++ lib/libucsi/atsc/cvct_section.c
@@ -40,13 +40,13 @@ struct atsc_cvct_section *atsc_cvct_sect
pos += 7*2;
- bswap32(buf+pos);
- bswap32(buf+pos+4);
- bswap16(buf+pos+8);
- bswap16(buf+pos+10);
- bswap16(buf+pos+12);
- bswap16(buf+pos+14);
- bswap16(buf+pos+16);
+ ubswap32(buf+pos);
+ ubswap32(buf+pos+4);
+ ubswap16(buf+pos+8);
+ ubswap16(buf+pos+10);
+ ubswap16(buf+pos+12);
+ ubswap16(buf+pos+14);
+ ubswap16(buf+pos+16);
pos+=18;
if ((pos + channel->descriptors_length) > len)
@@ -61,7 +61,7 @@ struct atsc_cvct_section *atsc_cvct_sect
return NULL;
struct atsc_cvct_section_part2 *part2 = (struct atsc_cvct_section_part2 *) (buf+pos);
- bswap16(buf+pos);
+ ubswap16(buf+pos);
pos+=2;
if ((pos + part2->descriptors_length) > len)