Files
pkgsrc-ng/multimedia/dvb-apps/patches/patch-lib_libucsi_mpeg_odsmt__section.c
2013-09-26 17:14:40 +02:00

23 lines
750 B
C

$NetBSD: patch-lib_libucsi_mpeg_odsmt__section.c,v 1.1 2011/07/15 22:59:21 jmcneill Exp $
--- lib/libucsi/mpeg/odsmt_section.c.orig 2011-06-28 05:50:24.000000000 +0000
+++ lib/libucsi/mpeg/odsmt_section.c
@@ -41,7 +41,7 @@ struct mpeg_odsmt_section *mpeg_odsmt_se
if ((pos + sizeof(struct mpeg_odsmt_stream_single)) > len)
return NULL;
- bswap16(buf+pos);
+ ubswap16(buf+pos);
pos+=3;
if ((pos + stream->u.single.es_info_length) >= len)
@@ -59,7 +59,7 @@ struct mpeg_odsmt_section *mpeg_odsmt_se
if ((pos + sizeof(struct mpeg_odsmt_stream_multi)) > len)
return NULL;
- bswap16(buf+pos);
+ ubswap16(buf+pos);
pos += sizeof(struct mpeg_odsmt_stream_multi);
if ((pos + stream->u.multi.es_info_length) > len)