diff common.h @ 344:9f6071a87e17 libavcodec

fixed msmpeg4 infinite loop if buggy stream rewrote quantizer fixed bias (+10% compression/quality for h263 like codecs) qscale=1 support mpeg1 intra frames looks far less blocky added codec_id field
author michaelni
date Sat, 27 Apr 2002 12:30:26 +0000
parents d359db02fc90
children 2066dc543be4
line wrap: on
line diff
--- a/common.h	Fri Apr 26 07:18:57 2002 +0000
+++ b/common.h	Sat Apr 27 12:30:26 2002 +0000
@@ -157,6 +157,9 @@
 
 #endif /* HAVE_AV_CONFIG_H */
 
+/* assume b>0 */
+#define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
+
 /* bit output */
 
 struct PutBitContext;