[asterisk-commits] trunk r37785 - /trunk/formats/format_h263.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jul 17 09:31:44 MST 2006


Author: tilghman
Date: Mon Jul 17 11:31:43 2006
New Revision: 37785

URL: http://svn.digium.com/view/asterisk?rev=37785&view=rev
Log:
H.263 frames can apparently be larger than was originally coded.

Modified:
    trunk/formats/format_h263.c

Modified: trunk/formats/format_h263.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_h263.c?rev=37785&r1=37784&r2=37785&view=diff
==============================================================================
--- trunk/formats/format_h263.c (original)
+++ trunk/formats/format_h263.c Mon Jul 17 11:31:43 2006
@@ -49,7 +49,13 @@
 
 /* Portions of the conversion code are by guido at 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;



More information about the asterisk-commits mailing list