diff --git a/formats/format_h263.c b/formats/format_h263.c index 08891c8cd2f12ed392f55bf54e390554128ba27d..70108e9ef74f1ad4b62a383fec965a947aeec815 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;