Hi again, I am sending this patch again (I had missed a check for NULL), could somebody please have a look at it?  It is mainly an optimization when the encoder knows in advance that only portions of the whole frame changed and which areas actually did. The patch allows a user to pass down information to libx264 information about which parts of a frame changed (with respect to the preceding one) to be exploited as a hint for P_SKIP-ing macroblocks which didn't change.  This information is encoded in the mb_info field of the x264_param_t much like the quant_offsets which are already used for the AV_FRAME_DATA_REGIONS_OF_INTEREST side information. Best, Elias NICE SRL, viale Monte Grappa 3/5, 20124 Milano, Italia, Registro delle Imprese di Milano Monza Brianza Lodi REA n. 2096882, Capitale Sociale: 10.329,14 EUR i.v., Cod. Fisc. e P.IVA 01133050052, Societa con Socio Unico