I currently work on P-frames and need to do motion compensation. As I figured out it is done by call of ff_emulated_edge_mc() and pixel ops from DSPContext Please tell how to use them and what operation to choose for halfpel/quarterpel and such. P.S. When I finish more or less decent P-frames decoding I'll add my decoder to FFmpeg SVN.