aboutsummaryrefslogtreecommitdiffstats
path: root/formats
diff options
context:
space:
mode:
Diffstat (limited to 'formats')
-rw-r--r--formats/format_h263.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_h263.c b/formats/format_h263.c
index 08891c8cd..70108e9ef 100644
--- a/formats/format_h263.c
+++ b/formats/format_h263.c
@@ -84,7 +84,7 @@ static struct ast_frame *h263_read(struct ast_filestream *s, int *whennext)
len &= 0x7fff;
if (len > BUF_SIZE) {
ast_log(LOG_WARNING, "Length %d is too long\n", len);
- len = BUF_SIZE; /* XXX truncate ? */
+ return NULL;
}
s->fr.frametype = AST_FRAME_VIDEO;
s->fr.subclass = AST_FORMAT_H263;