aboutsummaryrefslogtreecommitdiffstats
path: root/formats
diff options
context:
space:
mode:
Diffstat (limited to 'formats')
-rw-r--r--formats/format_h263.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/formats/format_h263.c b/formats/format_h263.c
index ccba23d6d..e57b9924c 100644
--- a/formats/format_h263.c
+++ b/formats/format_h263.c
@@ -161,6 +161,7 @@ static struct ast_frame *h263_read(struct ast_filestream *s, int *whennext)
len &= 0x7fff;
if (len > sizeof(s->h263)) {
ast_log(LOG_WARNING, "Length %d is too long\n", len);
+ return NULL;
}
if ((res = fread(s->h263, 1, len, s->f)) != len) {
if (res)