blob: bcc5a2f44568b0925d1e3b88ea663c8afb2ca84e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$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)
|