diff mpegvideo.h @ 1164:0e3c0c4a7b3d libavcodec

msmpeg4 2pass support & some related cleanup
author michaelni
date Wed, 02 Apr 2003 09:57:34 +0000
parents 8c15d82c1893
children 5af9aeadbdc3
line wrap: on
line diff
--- a/mpegvideo.h	Tue Apr 01 15:38:01 2003 +0000
+++ b/mpegvideo.h	Wed Apr 02 09:57:34 2003 +0000
@@ -662,6 +662,14 @@
     s->block_index[5]++;
 }
 
+static inline int get_bits_diff(MpegEncContext *s){
+    const int bits= get_bit_count(&s->pb);
+    const int last= s->last_bits;
+
+    s->last_bits = bits;
+
+    return bits - last;
+}
 
 /* motion_est.c */
 void ff_estimate_p_frame_motion(MpegEncContext * s,