summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2015-04-22 09:03:23 +0000
committerLiong Sauw Ming <ming@teluu.com>2015-04-22 09:03:23 +0000
commit21f84b3fc05ba3e820001bc9d7234b72ace47a8a (patch)
treedcc32eb188008f9cd0c3c0ea5ef7a0cad28b9ddc /pjmedia
parent8ef08d249a86fb80b14410c30cebce9ffbe27ab9 (diff)
Re #1843: Fixed unused variable warning when using OpenCore AMR (thanks to Alexander Traud for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5075 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/include/pjmedia-codec/amr_helper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia-codec/amr_helper.h b/pjmedia/include/pjmedia-codec/amr_helper.h
index 8b6557b1..4b09ba4b 100644
--- a/pjmedia/include/pjmedia-codec/amr_helper.h
+++ b/pjmedia/include/pjmedia-codec/amr_helper.h
@@ -759,6 +759,8 @@ PJ_INLINE(pj_status_t) pjmedia_codec_amr_predecode(
bitrate_tbl = pjmedia_codec_amrwb_bitrates;
order_maps = pjmedia_codec_amrwb_ordermaps;
}
+
+ PJ_UNUSED_ARG(bitrate_tbl);
/* unpack AMR bitstream if there is any data */
if (in_info->frame_type <= SID_FT) {
@@ -900,6 +902,8 @@ PJ_INLINE (pj_status_t) pjmedia_codec_amr_pack(
bitrate_tbl = pjmedia_codec_amrwb_bitrates;
order_maps = pjmedia_codec_amrwb_ordermaps;
}
+
+ PJ_UNUSED_ARG(bitrate_tbl);
/* Code Mode Request, 4 bits */
*w = (pj_uint8_t)(setting->cmr << 4);
@@ -1112,6 +1116,7 @@ PJ_INLINE(pj_status_t) pjmedia_codec_amr_parse(
}
PJ_UNUSED_ARG(pkt_size);
+ PJ_UNUSED_ARG(order_maps);
/* Code Mode Request, 4 bits */
*cmr = (pj_uint8_t)((*r >> 4) & 0x0F);