aboutsummaryrefslogtreecommitdiffstats
path: root/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'frame.c')
-rwxr-xr-xframe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/frame.c b/frame.c
index c93d2abff..72197d5c1 100755
--- a/frame.c
+++ b/frame.c
@@ -136,6 +136,9 @@ struct ast_frame *ast_smoother_read(struct ast_smoother *s)
int len;
/* IF we have an optimization frame, send it */
if (s->opt) {
+ if (s->opt->offset < AST_FRIENDLY_OFFSET)
+ ast_log(LOG_WARNING, "Returning a frame of inappropriate offset (%d).",
+ s->opt->offset);
opt = s->opt;
s->opt = NULL;
return opt;