mpegvideo: set AVFrame fields to NULL after freeing the base memory