diff options
Diffstat (limited to 'frame.c')
-rwxr-xr-x | frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |