diff options
author | Joshua Colp <jcolp@digium.com> | 2008-04-01 16:50:37 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2008-04-01 16:50:37 +0000 |
commit | 7dab892401aad8e359b171b894d43b928f28a43a (patch) | |
tree | ecc72e587dafd24c032dae802fdf781cad301062 /include/asterisk/slinfactory.h | |
parent | af9c1ee0df56a3cff54f958689e7331bfd374a5c (diff) |
Merged revisions 112125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r112125 | file | 2008-04-01 13:45:14 -0300 (Tue, 01 Apr 2008) | 5 lines
Ensure that we do not exceed the hold's maximum size with a single frame.
(closes issue #12047)
Reported by: fabianoheringer
Tested by: fabianoheringer
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/slinfactory.h')
-rw-r--r-- | include/asterisk/slinfactory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/slinfactory.h b/include/asterisk/slinfactory.h index 386cf51ba..4d3e8eaf8 100644 --- a/include/asterisk/slinfactory.h +++ b/include/asterisk/slinfactory.h @@ -28,10 +28,12 @@ extern "C" { #endif +#define AST_SLINFACTORY_MAX_HOLD 1280 + struct ast_slinfactory { AST_LIST_HEAD_NOLOCK(, ast_frame) queue; /*!< A list of unaltered frames */ struct ast_trans_pvt *trans; /*!< Translation path that converts fed frames into signed linear */ - short hold[1280]; /*!< Hold for audio that no longer belongs to a frame (ie: if only some samples were taken from a frame) */ + short hold[AST_SLINFACTORY_MAX_HOLD]; /*!< Hold for audio that no longer belongs to a frame (ie: if only some samples were taken from a frame) */ short *offset; /*!< Offset into the hold where audio begins */ size_t holdlen; /*!< Number of samples currently in the hold */ unsigned int size; /*!< Number of samples currently in the factory */ |