diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-17 16:31:43 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-17 16:31:43 +0000 |
commit | cb6fe39e9be455997d539c9855af454149c4ae10 (patch) | |
tree | 710ab20a1b76555edc523d442d4bc8add4918289 | |
parent | 4b6aacc5fdfdb822f400a438aa2c422bec19d751 (diff) |
H.263 frames can apparently be larger than was originally coded.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37785 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | formats/format_h263.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/formats/format_h263.c b/formats/format_h263.c index 70108e9ef..cee3fd7c6 100644 --- a/formats/format_h263.c +++ b/formats/format_h263.c @@ -49,7 +49,13 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") /* Portions of the conversion code are by guido@sienanet.it */ -#define BUF_SIZE 4096 /* Two Real h263 Frames */ +/* According to: + * http://lists.mpegif.org/pipermail/mp4-tech/2005-July/005741.html + * the maximum actual frame size is not 2048, but 8192. Since the maximum + * theoretical limit is not much larger (32k = 15bits), we'll go for that + * size to ensure we don't corrupt frames sent to us (unless they're + * ridiculously large). */ +#define BUF_SIZE 32768 /* Four real h.263 Frames */ struct h263_desc { unsigned int lastts; |