blob: e0ebc8b3f481ba29e37c92f460adc92aa4784c1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
{
|