diff options
Diffstat (limited to 'multimedia/libdvbpsi/patches/patch-src_descriptors_dr__7c.c')
-rw-r--r-- | multimedia/libdvbpsi/patches/patch-src_descriptors_dr__7c.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/libdvbpsi/patches/patch-src_descriptors_dr__7c.c b/multimedia/libdvbpsi/patches/patch-src_descriptors_dr__7c.c new file mode 100644 index 00000000000..e0ebc8b3f48 --- /dev/null +++ b/multimedia/libdvbpsi/patches/patch-src_descriptors_dr__7c.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_descriptors_dr__7c.c,v 1.1 2013/02/26 11:27:28 joerg Exp $ + +--- src/descriptors/dr_7c.c.orig 2013-02-25 14:29:08.000000000 +0000 ++++ src/descriptors/dr_7c.c +@@ -245,7 +245,7 @@ dvbpsi_aac_dr_t *dvbpsi_DecodeAACDr(dvbp + /* Keep additional info bytes field */ + if (p_descriptor->i_length > 1) + { +- uint8_t i_info_length = p_descriptor->i_length - p_decoded->b_type ? 3 : 2; ++ uint8_t i_info_length = p_descriptor->i_length - (p_decoded->b_type ? 3 : 2); + dvbpsi_aac_dr_t *p_tmp = realloc(p_decoded, sizeof(dvbpsi_aac_dr_t) + i_info_length); + if (!p_tmp) + { |