It looks like prediction_table allocated in this function is not being released. Unsure if there is plan to write function to dealocate IntraX8Context structure or if the vc1.c should check and release it itself ? So leaving this solution to author ;) Zdenek